remark-mdat
Version:
A remark plugin implementing the Markdown Autophagic Template (MDAT) system.
9 lines (8 loc) • 421 B
TypeScript
import type { Html, Root, Text } from 'mdast';
import type { VFile } from 'vfile';
/**
* Mdast utility plugin to split any multi-comment nodes and their content into individual MDAST HTML
* nodes. They're wrapped in a paragraph so as not to introduce new breaks.
*/
export declare function mdatSplit(tree: Root, file: VFile): void;
export declare function splitHtmlIntoMdastNodes(mdastNode: Html): Array<Html | Text>;