@mintlify/common
Version:
Commonly shared code within Mintlify
10 lines (9 loc) • 423 B
TypeScript
import type { Root } from 'mdast';
/**
* Unwraps paragraph children inside JSX heading elements (h1–h6).
*
* The custom-ID preprocessor emits headings like `<h2 id="x">\nText\n</h2>`,
* and MDX parses the text on its own line as a paragraph block. This plugin
* flattens those paragraphs so the heading receives inline children directly.
*/
export declare const remarkUnwrapJsxHeadings: () => (tree: Root) => void;