Tool to validate front matter YAML in markdown files #10121
Unanswered
lamyergeier
asked this question in
Q&A
Replies: 1 comment
-
What are you trying to do? If you want to extract YAML metadata, you can do that with pandoc itself. Create a template
then If you want to raise an error if the YAML is malformed, pandoc's parser will do this itself. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any tool to validate front matter YAML in markdown files?
Note
yamllint
doesn't support it (refer: [Support YAML front-matter in markdown files · Issue #161 · adrienverge/yamllint](Support YAML front-matter in markdown files adrienverge/yamllint#161))yq
([mikefarah/yq: yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor](https://github.com/mikefarah/yq)) can extract YAML front matter only if it is a valid YAML.Beta Was this translation helpful? Give feedback.
All reactions