Expand description
Who paints a fenced block.
A consumer that needs a block of its own — a chart, a diagram, an embed —
reaches for this rather than for a new crate::BlockKind. The vocabulary
stays closed because markdown is the wire form and a new kind would have to
own a syntax; a fence already has one. It round trips byte for byte, holds a
caret in crate::Part::Code, and on a build that installs nothing it
paints the source it always did.
The mermaid feature paints a ```mermaid fence the installed renderer
leaves, as a diagram or a chart.
Installed once at boot like the highlighter, and read at paint.
Structs§
- Fence
- The fence a
BlockRendereris asked to paint.
Type Aliases§
- Block
Renderer - Paints the block a fence’s info string names, or
Noneto leave it to the ordinary code block. - Rewrite
- Replaces the painted fence’s code — see
Fence::rewrite.