UNPKG

@tanstack/markdown

Version:

A tiny, fast, deterministic Markdown renderer for blogs and documentation.

12 lines 610 B
import type { BlockNode, ComponentNode } from '../types.js'; export interface HeadingSection { id?: string; name: string; children: BlockNode[]; } export declare function blocksToText(blocks: BlockNode[]): string; export declare function splitByHeading(children: BlockNode[], forcedDepth?: number): HeadingSection[]; export declare function slugify(value: string, fallback: string): string; export declare function markFrameworkHeadings(blocks: BlockNode[], framework: string): BlockNode[]; export declare function getComponentName(node: ComponentNode): string; //# sourceMappingURL=shared.d.ts.map