Module

PuduLangDocgen.Markdown.Render

View source

Article blocks rendered as accessible HTML

Types

Name Description
Rendered Page HTML with its outline, links, and needs

Functions

Name Description
render Blocks rendered for a page; the title is the first level-one heading.
summaryOf Plain text of the first paragraph, cut at a word near the summary limit.

render

fn render(blocks: &Array[Syntax.Block], context: &Phrase.Scope) -> Rendered

Blocks rendered for a page; the title is the first level-one heading.

Parameters

blocks
&Array[Syntax.Block]
context
&Phrase.Scope

Returns

Rendered

View source

summaryOf

fn summaryOf(blocks: &Array[Syntax.Block]) -> Str

Plain text of the first paragraph, cut at a word near the summary limit.

Parameters

blocks
&Array[Syntax.Block]

Returns

Str

View source