The serializeDocumentToMarkdown function accepts a syntax parameter of type MarkdownSyntax to control how Markdown is generated.
There are two primary options:
MarkdownSyntax.superEditor: Standard Markdown plus custom syntaxes (e.g., paragraph alignment like :--- for left or :---: for center).MarkdownSyntax.normal: Standard Markdown syntax as defined by the markdown package.
MarkdownSyntax.superEditor is the default.
final markdown = serializeDocumentToMarkdown(
superEditorDocument,
syntax: MarkdownSyntax.normal,
);