Module: GitHubParser
- Extended by:
- GitHubParser
- Included in:
- GitHubParser
- Defined in:
- lib/devcenter-parser/github_parser.rb
Defined Under Namespace
Classes: HTMLWithPantsRenderer
Class Method Summary collapse
Class Method Details
.parse(markdown) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/devcenter-parser/github_parser.rb', line 35 def self.parse(markdown) html = github_parser.render(markdown.to_s) doc = Nokogiri::HTML5::DocumentFragment.parse(html) special_blocks(doc) doc end |