Expand description
RTF extractor — a small reader for the parts of RTF that carry text.
Why not the rtf-parser crate: as of 0.4.3 it never handles the \par
control word, so every paragraph boundary is lost and a document collapses
into one blob — the one thing a Markdown extractor cannot afford. Its default
features also pull wasm-bindgen into the binary. RTF’s grammar is small
enough that reading it directly is both cheaper and more accurate.
Scope: groups, destinations, character escapes, \uN unicode, bold/italic,
and the breaks (\par, \line, \cell, \row). Formatting we cannot
represent — fonts, colours, sizes — is skipped, and headings are not guessed
from point sizes.
Structs§
- Parsed
- What a parsed RTF document yields.
- RtfExtractor
Functions§
- parse
- Parse RTF source. Pure.