Skip to main contentModule model
Source - HeadingAttrs
- Heading attributes: the ATX level, 1–6.
- OrderedListAttrs
- Ordered-list attributes: the first item number, at least 1.
- WdfDocument
- The canonical WDF document.
- WdfListItem
- A list item; canonical items contain exactly one paragraph.
- WdfMark
- An inline mark.
"bold" is the only valid mark_type in v0.1. - WdfParagraph
- A paragraph, either at the top level or inside a blockquote/list item.
- WdfRoot
- The root node of a
WdfDocument. - WdfText
- An inline text run.
bold is the only supported mark in v0.1.
- WdfBlock
- A block-level node.
- WDF_SCHEMA
- Value of the
schema field in every WDF v0.1 document: "weimo.document". - WDF_VERSION
- Value of the
version field in every WDF v0.1 document.
- list_item
- Builds a list item whose single paragraph wraps the given inline runs.
- paragraph
- Builds a paragraph from inline runs:
paragraph(vec![WdfText::plain("hi")]).