Skip to main content
Version: v0.0.4

Interface: TextRun

One contiguous run of rendered display text, tagged with whether it fell inside a \H\N highlight span. Runs preserve emphasis boundaries that the flat RenderedText.text intentionally drops.

Properties

highlighted

readonly highlighted: boolean

true when this run is inside a \H\\N highlight span.


text

readonly text: string

The literal display text of this run: escape sentinels already resolved (delimiter/hex decoded, formatting → whitespace/line breaks). Never contains a formatting sentinel; may contain the newline used for breaks.