Sean10/markless

Support for YAML frontmatter from (https://github.com/tejasvi/markless/issues/16)

Sean10 opened this issue · 2 comments

Support for YAML frontmatter from (https://github.com/tejasvi/markless/issues/16)
srid commented

It fixes it more or less, though there is a horizontal gray line at the topi:

image

I'd think the parser should ignore both the --- lines (above and below the frontmatter), not just the ending line.

Now i have questions about why remark mark the ending --- line is part of the heading node, so i'm not sure it should be removed or not is correspond with commonmark.

It will take time.

like this remark test demo.
remark/heading-setext-with-initial-spacing.text at 25c7a324403afc68cdf54ab85d566516228cc639 · remarkjs/remark
remark/heading-setext-with-initial-spacing.json at 25c7a324403afc68cdf54ab85d566516228cc639 · remarkjs/remark