I don't undestand how to create a new line using Markdown Redcarpet. I type
Line 1
Line 2
But I see
Line 1 Line 2
In my helper I have markdown = Redcarpet::Markdown.new(MarkdownRenderer, hard_wrap: true, autolink: true, space_after_headers: true)
According to the Redcarpet manual, the
auto_wrap
option goes into the Renderer initializer like this:which gives me this output
https://github.com/vmg/redcarpet#darling-i-packed-you-a-couple-renderers-for-lunch
Please note that I couldn't find a
MarkdownRenderer
class as Redcarpet comes only with aRedcarpet::Render::HTML
andRedcarpet::Render::XHTML
built in renderer.