Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFrontmatter ¶
ExtractFrontmatter extracts the raw YAML frontmatter bytes from content It returns the raw frontmatter bytes, the remaining content bytes, and any error
func Parse ¶
Parse parses YAML frontmatter from a markdown file It returns a map of frontmatter data, the remaining content, and any error
func ParseFromFile ¶
ParseFromFile reads a file and parses its frontmatter
func RenderYAML ¶ added in v0.0.4
RenderYAML marshals v to YAML using a consistent goccy/go-yaml encoder configuration. It returns the YAML string without any surrounding frontmatter fences.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.