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.
Installed once at boot like the highlighter, and read at paint.
Modules§
- highlight
- Who colors a fenced block.
Structs§
- Fence
- The fence a
BlockRendereris asked to paint.
Constants§
- NOTE_
SELECTOR - The debug selector on a
fence_note.
Functions§
- fence_
band - The band across the top of a
fence_panel, where its label and copy button sit. - fence_
note - A note across the bottom of a
fence_panelunder its code — why the code was not painted — its lines kept as written. - fence_
panel - The box a fence is drawn in, painted or as code.
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.