Package-level declarations

High-level conversions: RtfTextExtractor / extractPlainText and RtfToMarkdown / convertToMarkdown.

Types

Link copied to clipboard

Extracts plain text from an RTF document. Text is accumulated only while the current destination is one of the body destinations (Command.rtf, Command.pntext, Command.fldrslt); content in destinations such as fonttbl, stylesheet or info is ignored.

Link copied to clipboard

Converts an RTF document to a Markdown approximation. Tracks the bold (Command.b) and italic (Command.i) toggles and wraps body text runs in ** and _. Body-text filtering matches RtfTextExtractor: only Command.rtf, Command.pntext and Command.fldrslt destinations contribute text.

Functions

Link copied to clipboard

Parse bytes as RTF and return a Markdown approximation.

Link copied to clipboard

Parse bytes as RTF and return the extracted plain text.