Class MarkdownSerializer
Serializes a DoclingDocument to Markdown format. Walks the body tree in reading order and emits Markdown for each content item.
public class MarkdownSerializer
- Inheritance
-
MarkdownSerializer
- Inherited Members
Properties
EscapeText
When true (default), escapes Markdown-significant characters in body text (paragraphs, list items, headings, titles) so source content like "literal" survives a round trip without being interpreted as emphasis.
public bool EscapeText { get; set; }
Property Value
ImagePlaceholder
Placeholder text used for picture items.
public string ImagePlaceholder { get; set; }
Property Value
TableSerializer
Strategy for rendering table items to Markdown. Defaults to GridTableSerializer (standard pipe table). Swap to SemanticTableSerializer for semantic group rendering.
public ITableSerializer TableSerializer { get; set; }
Property Value
Methods
Serialize(DoclingDocument)
Converts the entire document body to a Markdown string.
public string Serialize(DoclingDocument doc)
Parameters
docDoclingDocument