Skip to main content

Module document

Module document 

Source

Structs§

CellSize
Size of one terminal cell in pixels; present only when pictures can be drawn.
Document
Line
Picture
A PNG and the terminal cell box it is drawn into.
Rgb
Settings
Span
Style

Enums§

Block
JumboTitle
How a level-1 heading is drawn two rows tall, when asked for and the terminal can.

Constants§

MIN_WIDTH
The narrowest width the renderers lay out at: a code panel needs its padding, its continuation marker and a wide grapheme side by side. A narrower Settings::width is laid out this wide.

Functions§

highlight
Restyles the text inside ranges, for a search match or a word-level diff; text, widths and links never change.
plain
The document as bare text, one [picture: alt cols×rows] line per picture and each double-height line twice: what snapshot tests compare. It keeps the input’s escape sequences, so never print it; print printable instead.
printable
plain safe to write to a terminal: through sanitize::lines.