Expand description
A purpose-built markdown → styled-lines renderer for the document pane.
Not a general CommonMark engine: OKF bodies are deliberately simple, and
okf-core already ships the hard parts (heading extraction, link parsing,
footnote scanning). The renderer’s extra job over plain text is the link
focus map: every rendered link and footnote reference records its line so
the viewer can Tab-cycle and Enter-follow them.
Structs§
- Focus
Target - One focusable element and the rendered line it starts on.
- Heading
Pos - A heading’s position in the rendered output.
- Rendered
Doc - The rendered document: styled lines plus the focus and jump maps.
Enums§
- Focus
Kind - What a focusable element in the rendered document points at.
Functions§
- char_
width - Display width of a char: a small
wcwidthapproximation on std. - render_
document - Renders a document body at a pane width.
- str_
width - Display width of a string.
- truncate_
to_ width - Truncates
sto at mostmaxdisplay columns, appending…when cut.