Skip to main content

Module model

Module model 

Source

Structs§

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.

Enums§

WdfBlock
A block-level node.

Constants§

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.

Functions§

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")]).