mdparse

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 4 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 RenderFrontmatter added in v0.7.0

func RenderFrontmatter(meta interface{}, body string) ([]byte, error)

RenderFrontmatter renders YAML frontmatter and a markdown body into the standard frontmatter format:

---
(YAML)
---

(body)

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