Skip to content

Markdown Preview 0.0.7

Choose a tag to compare

@mfauzaan mfauzaan released this 03 May 11:36
4d578bd

YAML frontmatter rendering fix and Inspector metadata.

  • YAML frontmatter no longer collapses into a giant heading. The CommonMark renderer was treating the closing --- of a frontmatter block as a setext heading underline, turning title: / date: / tags: into one oversized H2 at the top of the document. The block is now stripped before parsing and the preview matches what GitHub, Obsidian, and VS Code show.
  • Frontmatter shows up in the Inspector. A new Properties section at the top of the Inspector lists each key/value pair from the document's frontmatter, so the metadata is one click away even though it's hidden from the rendered preview. The Quick Look extension hides it too.
  • Word, line, and heading counts now reflect body content. The Inspector's stats no longer include the frontmatter block in their totals.