Module: Explicit::Documentation::Markdown

Extended by:
Markdown
Included in:
Markdown
Defined in:
lib/explicit/documentation/markdown.rb

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