mdparse

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mdparse provides shared markdown parsing utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitFrontmatter

func SplitFrontmatter(content []byte) (frontmatterBytes []byte, body string, err error)

SplitFrontmatter extracts YAML frontmatter and body from markdown content. The content must begin with a "---" delimiter line followed by YAML, then a closing "---" delimiter. Everything after the closing delimiter is returned as the body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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