milkdown icon indicating copy to clipboard operation
milkdown copied to clipboard

[Feature] Frontmatter/metadata support

Open batonac opened this issue 1 year ago • 1 comments

Initial checklist

Problem

Some programs parse document metadata (or "properties") inside a triple-dash delimitated front matter section. For example, the following properties are example configuration parameters for a Marp slideshow:

---
theme: default
class: invert
auto-scaling: true
---

Milkdown doesn't know what to do with this at present:

Image

Solution

Some editors just provide an extra-formatted YAML editor:

Image

Obsidian really spices things up:

Image

Alternatives

Use a different editor other than Milkdown 😀

batonac avatar Mar 06 '25 01:03 batonac

+1 for this. Even the option of ignoring/not rendering the frontmatter YAML would be a good interim option?

lloydjatkinson avatar Sep 27 '25 22:09 lloydjatkinson