Expand description
AST to 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.
A document with its source is written partly from it (reuse, decision
0020): each node that corresponds to the node its source parses to is
written as its source, an edited one with its own syntax copied around
what changed, and the rest is rendered. Rendering only renders: each node
is written in the spelling the AST records for it, or else by one fixed
rule, with text, escapes, and character references as recorded. The output
is parsed back only to check the blocks written partly from the source.
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.