mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Add support for TOML front matter format #475
Reference in New Issue
Block a user
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 @jonjbar on GitHub (Aug 6, 2021).
It looks like the current version of markdig can only support the Yaml front matter format. However, the Hugo static web-site generator also supports the Toml format identified by opening and closing +++.
Can the existing Yaml front matter parser be extended to support that feature ? If not, would you consider implementing a Toml front matter parser ?
@xoofx commented on GitHub (Aug 6, 2021):
The Yaml extension in Markdig is not a fully fledged Yaml parser - and is likely incorrect. I would not recommend to use this method for properly separating Markdown content from a frontmatter content, but instead perform the parsing separately upfront with the different parsers.
Yes, It could.
Probably better to rename Yaml extension to a frontmatter extension and allow extensibility here.
Don't have personal spare time/interest for this feature, but PR welcome.