mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[Question] Adding specific attributes NOT related to HTML output #91
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 @capybarbu on GitHub (Feb 14, 2017).
Hello,
I'm currentlly using Markdown files into an app, without the need of HTML generation.
I'd like to add some kind of header to the markdown file, something like
Is there a way to handle this into Markdig without having to pre-parse the document by hand ?
The syntax in the example is not a requirement. Any syntax can do the job.
Thanks for your help
@xoofx commented on GitHub (Feb 14, 2017):
There is no extensions like this in markdig, as metadata are usually quite process dependent, so they are handled at a higher level (text templating layer, header data...etc.) Usually you use something like a YAML frontmatter, but whatever fits your needs (a simple parser for a first line can be sometimes a simpler option)
@capybarbu commented on GitHub (Feb 14, 2017):
Oh, YAML seems a good choice, I'll dig it. Thanks