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
8 9 10 11 12 13 |
# File 'lib/devcenter-parser/github_parser.rb', line 8 def self.parse(markdown) html = github_parser.render(markdown.to_s) doc = Nokogiri::HTML::DocumentFragment.parse(html) special_blocks(doc) doc end |