Skip to main content

Module buffer

Module buffer 

Source
Expand description

In-memory document for the interactive view.

RenderedDoc holds the styled bytes, an ANSI-stripped plain copy, parallel line-start indexes, and a heading list. Built once from push_tty output plus a HeadingRecorder.

Structs§

HeadingEntry
One heading in the rendered document.
HeadingRecorder
RenderObserver that collects heading starts with their text.
RenderedDoc
Pre-rendered markdown document with searchable plain copy + line index.

Functions§

build
Assemble a RenderedDoc from the styled output + recorded headings.