Module
PuduLangDocgen.Markdown.Phrase
Inline HTML with checked links, images, and cross references
Types
| Name | Description |
|---|---|
Rendering |
Site-wide choices about how article content renders |
Scope |
Where a page is published and what its links may reach |
Out |
Rendered pieces and facts gathered while rendering one page |
Functions
| Name | Description |
|---|---|
rendering |
Rendering choices used when a site configures none. |
start |
An empty accumulator. |
emit |
The accumulator with text appended. |
report |
The accumulator with a diagnostic recorded. |
need |
The accumulator noting that a page needs a client feature such as `math` or `mermaid`. |
inlines |
Inline nodes appended as HTML; `origin` is the file the nodes were written in. |
destination |
The browser destination of a written link, recording local targets for validation. Unsafe and unknown destinations produce diagnostics and answer the empty text. |
referenceHref |
A browser destination to a reference, relative to the page unless remote. |
rendering
Rendering choices used when a site configures none.
Returns
start
An empty accumulator.
Returns
emit
The accumulator with text appended.
Parameters
outOuttextStr
Returns
report
fn report(out: Out, found: Docgen.Diagnostic) -> Out
The accumulator with a diagnostic recorded.
Parameters
outOutfoundDocgen.Diagnostic
Returns
need
The accumulator noting that a page needs a client feature such as math or mermaid.
Parameters
outOutfeatureStr
Returns
inlines
fn inlines(out: Out, nodes: &Array[Syntax.Inline], context: &Scope, origin: Str) -> Out
Inline nodes appended as HTML; origin is the file the nodes were written in.
Parameters
outOutnodes&Array[Syntax.Inline]context&ScopeoriginStr
Returns
destination
fn destination(out: Out, target: &Syntax.Target, context: &Scope, origin: Str, image: Bool) -> (Out, Str)
The browser destination of a written link, recording local targets for validation. Unsafe and unknown destinations produce diagnostics and answer the empty text.
Parameters
outOuttarget&Syntax.Targetcontext&ScopeoriginStrimageBool
Returns
(Out, Str)
referenceHref
fn referenceHref(reference: &Docgen.Reference, context: &Scope) -> Str
A browser destination to a reference, relative to the page unless remote.
Parameters
reference&Docgen.Referencecontext&Scope
Returns
Str