This remark plugin takes markdown with yaml frontmatter and parses the yaml into an object.
const unified =const markdown =const frontmatter =const parseFrontmatter = ;let processor =
When the processor is run,
yaml nodes will now have an additional key,
attached to its
Say that we have this markdown string:
---metadata: this is metadatatags:- one- two---# Heading
When parsed, this will produce a
yaml node with a
data object that looks like this:
data:parsedValue:metadata: "this is metadata"tags: "one" "two"