Module

PuduLangDocgen.Markdown.FrontMatter

View source

YAML header split from article body lines

Types

Name Description
Line One body line with its one-based source number
Header Metadata and the body lines after it

Functions

Name Description
split Metadata from a leading `---` block and the numbered lines after it. A header that is not a YAML mapping fails with its one-based line.

split

fn split(text: Str) -> Result[Header, (Int, Str)]

Metadata from a leading --- block and the numbered lines after it. A header that is not a YAML mapping fails with its one-based line.

Parameters

text
Str

Returns

Result[Header, (Int, Str)]

View source