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.
The serializer only renders: each node is written in the spelling the AST records for it, or else by one fixed rule. Text, escapes, and character references are written as recorded, and the output is never parsed back.
Structs§
- Serialize
Options - Output-style options for serialization. Defaults: LF, trailing newline, and the list markers and code fences the AST records.
Enums§
- Bullet
Marker - The bullet char
SerializeOptions::bulletwrites unordered lists with. - Line
Ending - The newline style emitted by the serializer.
- Ordered
Delimiter - The delimiter
SerializeOptions::ordered_delimiterwrites ordered-list markers with. - Serialize
Error - Why serialization failed.