Class: Makimono::Converter::Markdown::CommonMarker

Inherits:
Object
  • Object
show all
Defined in:
lib/makimono/converter/markdown/commonmarker.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ CommonMarker

Returns a new instance of CommonMarker.



9
10
11
# File 'lib/makimono/converter/markdown/commonmarker.rb', line 9

def initialize(config)
  @config = config
end

Instance Method Details

#render(markdown) ⇒ Object



13
14
15
# File 'lib/makimono/converter/markdown/commonmarker.rb', line 13

def render(markdown)
  ::CommonMarker.render_html(markdown, options, extensions)
end