Documentation
¶
Overview ¶
Package frontmatter splits and parses YAML frontmatter delimited by leading "---" lines in markdown content. It is the single home for this concern.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse splits frontmatter from content and unmarshals the YAML block into out. When no frontmatter is present, found is false and out is left unchanged.
func ParseStrict ¶ added in v0.34.0
ParseStrict is Parse with a closed mapping contract. It rejects fields that are not represented by out and rejects a second YAML document.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.