frontmatter

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFrontmatter

func ExtractFrontmatter(content []byte) ([]byte, []byte, error)

ExtractFrontmatter extracts the raw YAML frontmatter bytes from content It returns the raw frontmatter bytes, the remaining content bytes, and any error

func Parse

func Parse(content []byte) (map[string]interface{}, string, error)

Parse parses YAML frontmatter from a markdown file It returns a map of frontmatter data, the remaining content, and any error

func ParseFromFile

func ParseFromFile(fs util.FileSystem, path string) (map[string]interface{}, string, error)

ParseFromFile reads a file and parses its frontmatter

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL