Skip to main content

Module serialize

Module serialize 

Source
Expand description

AST to canonical Markdown. The verbs live on Document (to_markdown / to_markdown_with); SerializeOptions tunes the output style. The document is validated first, so serialization can fail with a SerializeError.

Structs§

SerializeOptions
Output-style options for serialization. Defaults: LF, trailing newline, - bullets, . ordered markers, and backtick code fences.

Enums§

LineEnding
The newline style emitted by the serializer.
SerializeError
Why serialization failed.