Jekyll (and similar, including Python-markdown) uses the following top-of-file metadata headers:
However, cmark parses this as a heading:
<hr />
<h2>key: value</h2>
<p>body</p>
Presumably because the --- underneath is the RestructuredText-style underscored headings. Indeed, a more-minimal testcase is actually:
… which I was expecting in a human sense to be parsed as:
I'm not sure what the solution is here. Special-case the triple --- due to Jekyll's widespread use of this?
(I discovered this via https://github.com/wereturtle/ghostwriter/issues/518)
Jekyll (and similar, including
Python-markdown) uses the following top-of-file metadata headers:However, cmark parses this as a heading:
Presumably because the
---underneath is the RestructuredText-style underscored headings. Indeed, a more-minimal testcase is actually:… which I was expecting in a human sense to be parsed as:
I'm not sure what the solution is here. Special-case the triple
---due to Jekyll's widespread use of this?(I discovered this via https://github.com/wereturtle/ghostwriter/issues/518)