Make frontmatter foldable

This commit is contained in:
Zef Hemel
2023-12-21 19:04:54 +01:00
parent 3c3b648b79
commit 90659c9c7e
3 changed files with 31 additions and 44 deletions
+5
View File
@@ -468,6 +468,11 @@ export default function buildMarkdown(mdExtensions: MDExt[]): Language {
from: state.doc.lineAt(tree.from).to,
to: tree.to,
}),
// Fold frontmatter
FrontMatter: (tree) => ({
from: tree.from,
to: tree.to,
}),
}),
styleTags({