mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Setext headings in blockquotes #398
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hamvocke on GitHub (Aug 13, 2020).
There seems to be a problem with Setext headings used within blockquotes.
Take this markdown input:
Running this on babelmark shows that most renderers will generate a blockquote that contains a heading and a paragraph. Markdig, however, creates a blockquote that contains a paragraph, a horizontal rule and another paragraph.
The CommonMark spec is not absolutely explicit about this case but generally states that
---characters should be treated as a Setext heading if they can be interpreted that way.Is this something that should be fixed in Markdig to be closer to what other Markdown renderers are doing?
@xoofx commented on GitHub (Aug 16, 2020):
It's definitely a bug, don't have time to look at this, but in case you have, PR welcome.