UNPKG

remark-mdat

Version:

A remark plugin implementing the Markdown Autophagic Template (MDAT) system.

14 lines (13 loc) 452 B
import type { Root } from 'mdast'; import { type VFile } from 'vfile'; export type Options = { closingPrefix: string; keywordPrefix: string; metaCommentIdentifier: string; }; /** * Collapses any expanded mdat comments and removes meta comments, * effectively resetting the document to its pre-expansion state. No-op if no * mdat comments are found. */ export declare function mdatClean(tree: Root, file: VFile, options: Options): void;