Enable YamlFrontMatterExtension will break the heading Hr #151

Closed
opened 2026-01-29 14:28:58 +00:00 by claunia · 3 comments
Owner

Originally created by @yishengjin1413 on GitHub (Nov 2, 2017).

The heading Hr will not work after enable YamlFrontMatterExtension . There is an example here:


Limit identifier Limit Comments
Maximum 200 beyond 200 c
Originally created by @yishengjin1413 on GitHub (Nov 2, 2017). The heading Hr will not work after enable YamlFrontMatterExtension . There is an example here: --- | Limit identifier | Limit | Comments | | --- | --- | --- | | Maximum |200 |beyond 200 c |
claunia added the bug label 2026-01-29 14:28:58 +00:00
Author
Owner

@xoofx commented on GitHub (Nov 9, 2017):

Hm, I'm failing to reproduce your issue.

For example the following markdown:

---
property: Yaml front matter
---
# This is a heading

---

This is a paragraph

will correctly remove the frontmatter and output a hr (the one after the "This is a heading")

The YamlFrontMatter extension expect the document to start with a leading ---. It is not intended to be used if you don't expect a YamlFrontMatter... or am I missing something?

@xoofx commented on GitHub (Nov 9, 2017): Hm, I'm failing to reproduce your issue. For example the following markdown: ``` --- property: Yaml front matter --- # This is a heading --- This is a paragraph ```` will correctly remove the frontmatter and output a hr (the one after the "This is a heading") The YamlFrontMatter extension expect the document to start with a leading `---`. It is not intended to be used if you don't expect a YamlFrontMatter... or am I missing something?
Author
Owner

@yishengjin1413 commented on GitHub (Nov 14, 2017):

@xoofx , the issue is when the whole markdown is :

---
This is a paragraph

Expect it's rendered to HR + paragraph, actually it's empty, since it rendered as YamlFronMatter.

@yishengjin1413 commented on GitHub (Nov 14, 2017): @xoofx , the issue is when the whole markdown is : ``` --- This is a paragraph ``` Expect it's rendered to HR + paragraph, actually it's empty, since it rendered as YamlFronMatter.
Author
Owner

@xoofx commented on GitHub (Nov 18, 2017):

Fixed by commit fbdb8cf

@xoofx commented on GitHub (Nov 18, 2017): Fixed by commit fbdb8cf
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#151