mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #153] YAML Front Matter Regex Not Handling Pandoc Mixed Fencing #133
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @jason-dour on GitHub (Nov 5, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/153
Right or wrong, Pandoc promotes the use of mixed fencing on YAML Front Matter. Throughout their documentation, they promote the following front matter style:
Which triggers rule MD041 to not recognize the front matter. As I dove in further, I don't think it is MD041 itself being triggered (no amount of options settings of
front_matter_titlemade a difference), but the recognition of the front matter as existing thanks to:shared.js:9-10Whereas, if I tweak that regex to be the following, Pandoc front matter is recognized appropriately:
shared.js:9-10I don't know if Pandoc YAML FM is important enough to modify this in your release codebase. Just figured I'd share what I found. Thanks.
@DavidAnson commented on GitHub (Nov 5, 2018):
Why, Pandoc, why?
@jason-dour commented on GitHub (Nov 5, 2018):
I don't know. I don't make the "standards"; I just get impacted by them. 😄