@tanstack/markdown re-exports the parser, inline parser, HTML renderer, and all shared public types.
import {
parseInline,
parseMarkdown,
renderBlock,
renderDocument,
renderHtml,
renderInline,
type MarkdownDocument,
type RenderOptions,
} from '@tanstack/markdown'function parseMarkdown(
markdown: string,
options?: ParseOptions,
): MarkdownDocumentParses a complete Markdown document. See the Parser Reference.
function parseInline(value: string, options?: ParseOptions): InlineNode[]Parses inline content without block parsing. It is useful inside custom extension parsers. Standalone calls do not perform document-level link-definition or footnote extraction unless the relevant parser state is supplied in ParseOptions.
Renders a source string or MarkdownDocument to HTML.
Renders a MarkdownDocument. It is a document-specific alias over renderHtml.
Renders one BlockNode to HTML.
Renders one InlineNode to HTML.
Signatures and rendering options are documented in the HTML Reference.
The default entry exports every AST node, parser context, render option, extension contract, and supporting definition from the Types Reference.