remark-mdat
Version:
A remark plugin implementing the Markdown Autophagic Template (MDAT) system.
17 lines (16 loc) • 528 B
TypeScript
import type { Root } from 'mdast';
import type { VFile } from 'vfile';
import { type Rules } from '../mdat/rules';
export type Options = {
addMetaComment: boolean;
closingPrefix: string;
keywordPrefix: string;
metaCommentIdentifier: string;
/** Enable extra checks, too noisy for real life. */
paranoid: boolean;
rules: Rules;
};
/**
* Mdast utility function to check mdat source document, and output.
*/
export declare function mdatCheck(tree: Root, file: VFile, options: Options): Promise<void>;