You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the markdown parser does not detect empty lines in between two different blockquotes.
Indeed if you want to render two different blockquotes, one after another, redcarpet currently merges both quotes into a single one.
Failing example
irb(main):002:0> markdown=Redcarpet::Markdown.new(Redcarpet::Render::HTML,autolink: true,tables: true)=>#<Redcarpet::Markdown:0x000055a02b0bdf80 @renderer=#<Redcarpet::Render::HTML:0x000055a02b0be020 @...irb(main):004:0> text=<<~TXTThis is a paragraph> This is a multiline> > blockquote > This is a second blockquoteTXT=>"This is a paragraph\n\n> This is a multiline\n> \n> blockquote\n\n> This is a second blockquote\n"irb(main):013:0> markdown.render(text)=>"<p>This is a paragraph</p>\n\n<blockquote>\n<p>This is a multiline</p>\n\n<p>blockquote</p>\n\n<p>This is a second blockquote</p>\n</blockquote>\n"
What is expected
irb(main):002:0> markdown=Redcarpet::Markdown.new(Redcarpet::Render::HTML,autolink: true,tables: true)=>#<Redcarpet::Markdown:0x000055a02b0bdf80 @renderer=#<Redcarpet::Render::HTML:0x000055a02b0be020 @...irb(main):004:0> text=<<~TXTThis is a paragraph> This is a multiline> > blockquote > This is a second blockquoteTXT=>"This is a paragraph\n\n> This is a multiline\n> \n> blockquote\n\n> This is a second blockquote\n"irb(main):013:0> markdown.render(text)=>"<p>This is a paragraph</p>\n\n<blockquote>\n<p>This is a multiline</p>\n\n<p>blockquote</p></blockquote>\n\n<blockquote>\n<p>This is a second blockquote</p>\n</blockquote>\n"
The text was updated successfully, but these errors were encountered:
It seems the markdown parser does not detect empty lines in between two different blockquotes.
Indeed if you want to render two different blockquotes, one after another, redcarpet currently merges both quotes into a single one.
Failing example
What is expected
The text was updated successfully, but these errors were encountered: