Package-level declarations
Everything the writer exposes: the RtfWriter / writeRtf styled-model serializer, the MarkdownToRtf / convertMarkdownToRtf converter, and the rich RtfDocument authoring model with RtfDocumentWriter.
Types
Converts a small Markdown subset into a StyledDocument, then to RTF via RtfWriter.
Horizontal paragraph alignment. Left is the RTF default and emits no control word.
A block-level element in an RtfDocument.
A named bookmark wrapping content, the jump target for a RtfHyperlinkKind.Bookmark link.
A paragraph border edge.
A line style for an RtfBorder.
An RGB color usable by RtfSpanStyle. Colors are referenced by value; the writer collects every referenced color into the \colortbl (index 0 is reserved for the document default "auto" color) and assigns the \cfN indices.
A rich, strongly-typed RTF document model for authoring arbitrarily complex output, the builder-style counterpart to StyledDocument's minimal round-trip model. Construct one directly and serialize it with RtfDocumentWriter.
Serializes an RtfDocument to a charset-free RTF string.
A font usable by RtfDocument. Fonts are referenced by value from an RtfSpanStyle; the writer collects every referenced font (plus the document default) into the \fonttbl and assigns the \fN indices, so callers never juggle indices themselves.
The RTF font-family class emitted in the font table (\froman, \fmodern, …).
A hyperlink field. For RtfHyperlinkKind.Url the target is an external URL; for RtfHyperlinkKind.Bookmark it is the name of an RtfBookmark elsewhere in the document. The visible, clickable text is the styled content (set underline/color on its runs to taste).
Whether an RtfHyperlink points at an external URL or an in-document RtfBookmark.
A piece of inline content inside an RtfParagraph.
A forced line break within a paragraph (\line).
Forces a page break before the following content (\page).
A paragraph: styled inline content plus paragraph-level formatting.
Paragraph-level formatting. All measurements are in twips (twentieths of a point; 1440 = 1 inch); firstLineIndentTwips may be negative for a hanging indent.
Character-level formatting for an RtfTextRun. A null font, fontSizeHalfPoints or color means "inherit the document/paragraph default" — the writer emits the corresponding control word only when the field is set.
Serializes a StyledDocument to a charset-free RTF string.
Functions
Convenience entry point: parse markdown and serialize the resulting document to RTF.
Convenience top-level entry point equivalent to RtfWriter().write(document).
Convenience top-level entry point equivalent to RtfDocumentWriter().write(document).