Table of Contents

Class MarkdownSerializer

Namespace
Mythosia.Documents.Elements
Assembly
Mythosia.Documents.Abstractions.dll

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

bool

ImagePlaceholder

Placeholder text used for picture items.

public string ImagePlaceholder { get; set; }

Property Value

string

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

ITableSerializer

Methods

Serialize(DoclingDocument)

Converts the entire document body to a Markdown string.

public string Serialize(DoclingDocument doc)

Parameters

doc DoclingDocument

Returns

string