Skip to main content

writeNode

Summary

Writes a single DocNode to the output. Overrides parent implementation to add custom handling for: - DocHeading - Markdown headings with configurable levels - DocNoteBox - Block quotes for note/warning boxes - DocTable - Mintlify components (TypeTree, ResponseField) or HTML fallback - DocEmphasisSpan - Bold/italic text spans - DocExpandable - Collapsible sections All other node types delegate to parent class.

Signature

protected writeNode(docNode: DocNode, context: IMarkdownEmitterContext<ICustomMarkdownEmitterOptions>, docNodeSiblings: boolean): void;

Parameters

docNode

Type:DocNode The node to write

context

Type:IMarkdownEmitterContext<ICustomMarkdownEmitterOptions> Emission context with writer and options

docNodeSiblings

Type:boolean Whether this node has siblings (affects spacing)

Returns

Type:void Writes a single DocNode to the output.Overrides parent implementation to add custom handling for: - DocHeading - Markdown headings with configurable levels - DocNoteBox - Block quotes for note/warning boxes - DocTable - Mintlify components (TypeTree, ResponseField) or HTML fallback - DocEmphasisSpan - Bold/italic text spans - DocExpandable - Collapsible sectionsAll other node types delegate to parent class.