Module

PuduLangDocgen.Markdown.Leaves

View source

Blocks read without nested content: code, math, and raw HTML

Types

Name Description
Step Blocks read from one position and where reading resumes

Functions

Name Description
fenced A fenced code block; an unclosed fence runs to the end of its container.
indented Code indented by four columns; blank lines inside are kept.
mathBlock A display math block between `$$` lines, or on one line.
markup Raw HTML running to the next blank line, or to the end of a comment.

fenced

fn fenced(lines: &Array[FrontMatter.Line], index: Int, opened: &Layout.Fence, origin: Str) -> Step

A fenced code block; an unclosed fence runs to the end of its container.

Parameters

lines
&Array[FrontMatter.Line]
index
Int
opened
&Layout.Fence
origin
Str

Returns

Step

View source

indented

fn indented(lines: &Array[FrontMatter.Line], index: Int) -> Step

Code indented by four columns; blank lines inside are kept.

Parameters

lines
&Array[FrontMatter.Line]
index
Int

Returns

Step

View source

mathBlock

fn mathBlock(lines: &Array[FrontMatter.Line], index: Int, origin: Str) -> Step

A display math block between $$ lines, or on one line.

Parameters

lines
&Array[FrontMatter.Line]
index
Int
origin
Str

Returns

Step

View source

markup

fn markup(lines: &Array[FrontMatter.Line], index: Int) -> Step

Raw HTML running to the next blank line, or to the end of a comment.

Parameters

lines
&Array[FrontMatter.Line]
index
Int

Returns

Step

View source