Module: Explicit::Documentation::Markdown
Instance Method Summary collapse
Instance Method Details
#to_html(markdown_text) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/explicit/documentation/markdown.rb', line 6 def to_html(markdown_text) ::Commonmarker.to_html(markdown_text, options: { parse: { smart: true }, render: { hardbreaks: false } }).html_safe end |