markdown

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse added in v1.0.0

func Parse[T any](input io.Reader, output io.Writer, frontMatter *T) error

Parse parses the front matter from the given markdown content and returns the parsed metadata and the rest of the content.

The front matter is expected to be in YAML format and is unmarshalled into the provided type T. The rest of the content is returned as a string.

If the front matter is not present, FrontMatter will be empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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