@mintlify/common
Version:
Commonly shared code within Mintlify
9 lines (8 loc) • 393 B
TypeScript
import type { Root, RootContent } from 'mdast';
/**
* Injects nodes to the top of a MDX/Markdown AST (Root), but below the frontmatter (YAML node).
* Modifies the tree in place.
* @param tree The Root node of the document.
* @param nodesToInject An array of RootContent nodes to inject.
*/
export declare const injectToTopOfFileOfTree: (tree: Root, nodesToInject: RootContent[]) => void;