Markdown YAML-frontmatter comments use Markdown-Preview
Posted: 16 Sep 2026 17:29
Markdown-Files can have some YAML Frontmatter, some times also TOLM-Frontmatter.
Frontmatter is always on top after shebang if shebang is included.
Frontmatter is between --- and --- (YAML) or +++...+++ (TOML)
or
Inside of the frontmatter comments can be placed at the beginning of a line or at the end of a line.
The Markdown-Sideview/Preview does interpret the frontmatter as Markdown and not as special Front-Matter, it will show line-comments in the front-matter as markdown level 1 titles.
Front-matter is a special thing and should look more like a foldable code-block in the preview, at least lore like code, or get fully ignored in the preview, but for sure it should not get displayed as normal markdown.
Frontmatter is always on top after shebang if shebang is included.
Frontmatter is between --- and --- (YAML) or +++...+++ (TOML)
Code: Select all
---
...
---Code: Select all
+++
...
+++Code: Select all
---
# Comment at beginning of line.
key: value # comment at end of line.
---Front-matter is a special thing and should look more like a foldable code-block in the preview, at least lore like code, or get fully ignored in the preview, but for sure it should not get displayed as normal markdown.