-
Add the gem
redcarpet
to theGemfile
:gem "redcarpet"
-
Render a Markdown string:
Redcarpet::Markdown .new(Redcarpet::Render::HTML.new) .render(my_markdown_string) .html_safe
Feb 14, 2025
Add the gem redcarpet
to the Gemfile
:
gem "redcarpet"
Render a Markdown string:
Redcarpet::Markdown
.new(Redcarpet::Render::HTML.new)
.render(my_markdown_string)
.html_safe