Class: Makimono::Converter::Markdown::CommonMarker
- Inherits:
-
Object
- Object
- Makimono::Converter::Markdown::CommonMarker
- Defined in:
- lib/makimono/converter/markdown/commonmarker.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ CommonMarker
constructor
A new instance of CommonMarker.
- #render(markdown) ⇒ Object
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, , extensions) end |