frontmatter

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package frontmatter splits a markdown file's leading YAML block from its body. project.md keeps the facts the binary acts on there, typed, and the prose the model reads below it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(data []byte) ([]byte, []byte, bool)

Split returns the YAML between a leading `---` line and the next `---` line, and the body after it. Without a leading block, ok is false and the body is the whole input; an opened block that never closes is not a block.

Types

This section is empty.

Jump to

Keyboard shortcuts

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