Method: ApplicationHelper#render_markdown
- Defined in:
- app/helpers/application_helper.rb
#render_markdown(markdown) ⇒ String
Render a markdown string to HTML with consistent options.
109 110 111 112 113 |
# File 'app/helpers/application_helper.rb', line 109 def render_markdown(markdown) CommonMarker.render_doc(markdown, [:FOOTNOTES, :LIBERAL_HTML_TAG, :STRIKETHROUGH_DOUBLE_TILDE], [:table, :strikethrough, :autolink]).to_html(:UNSAFE) end |