Page 1 of 1

Markdown YAML-frontmatter comments use Markdown-Preview

Posted: 16 Sep 2026 17:29
by ScrKiddle
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)

Code: Select all

---
...
---
or

Code: Select all

+++
...
+++
Inside of the frontmatter comments can be placed at the beginning of a line or at the end of a line.

Code: Select all

---
# Comment at beginning of line.
key: value # comment at end of 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.