Class: Jekyll::Converters::Markdown::CommonMarkGhPages
- Inherits:
-
CommonMark
- Object
- CommonMark
- Jekyll::Converters::Markdown::CommonMarkGhPages
- Defined in:
- lib/jekyll-commonmark-ghpages.rb
Overview
A Markdown renderer which uses JekyllCommonMarkCustomRenderer to output the final document.
Instance Method Summary collapse
Instance Method Details
#convert(content) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/jekyll-commonmark-ghpages.rb', line 52 def convert(content) = (Set.new(@options) & CommonMarker::Config::Parse.keys).to_a = (Set.new(@options) & CommonMarker::Config::Render.keys).to_a = :DEFAULT if .empty? = :DEFAULT if .empty? doc = CommonMarker.render_doc(content, , @extensions) JekyllCommonMarkCustomRenderer.new( :options => , :extensions => @extensions ).render(doc) end |