Module
PuduLangDocgen.Markdown.Blocks
Recursive block structure with includes and excerpts
Types
| Name | Description |
|---|---|
Env |
The file being parsed, loaded files, and include trail |
Parsed |
Blocks with the diagnostics found while reading them |
Functions
| Name | Description |
|---|---|
environment |
A parsing environment for a project-relative file with extra alert kinds. |
parse |
Blocks of numbered lines. |
inlines |
Inline content of text starting at a line, with inline includes resolved. |
environment
fn environment(origin: Str, files: &Map[Str, Str], alerts: &Set[Str]) -> Env
A parsing environment for a project-relative file with extra alert kinds.
Parameters
originStrfiles&Map[Str, Str]alerts&Set[Str]
Returns
parse
fn parse(lines: &Array[FrontMatter.Line], env: &Env, depth: Int) -> Parsed
Blocks of numbered lines.
Parameters
lines&Array[FrontMatter.Line]env&EnvdepthInt
Returns
inlines
fn inlines(text: Str, line: Int, env: &Env, depth: Int) -> (Array[Syntax.Inline], Array[Docgen.Diagnostic])
Inline content of text starting at a line, with inline includes resolved.
Parameters
textStrlineIntenv&EnvdepthInt
Returns
(Array[Syntax.Inline], Array[Docgen.Diagnostic])