UNPKG

remark-mdat

Version:

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

30 lines (29 loc) 1.17 kB
import type { Root } from 'mdast'; import type { Plugin } from 'unified'; import { z } from 'zod'; import { type Options as MdatOptions } from './mdast-utils/mdast-util-mdat'; export type Options = Partial<MdatOptions>; export declare const optionsSchema: z.ZodObject<{ addMetaComment: z.ZodOptional<z.ZodBoolean>; closingPrefix: z.ZodOptional<z.ZodString>; keywordPrefix: z.ZodOptional<z.ZodString>; metaCommentIdentifier: z.ZodOptional<z.ZodString>; rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<any, z.ZodTypeDef, any>>>; }, "strip", z.ZodTypeAny, { closingPrefix?: string | undefined; keywordPrefix?: string | undefined; metaCommentIdentifier?: string | undefined; rules?: Record<string, any> | undefined; addMetaComment?: boolean | undefined; }, { closingPrefix?: string | undefined; keywordPrefix?: string | undefined; metaCommentIdentifier?: string | undefined; rules?: Record<string, any> | undefined; addMetaComment?: boolean | undefined; }>; /** * A remark plugin that expands HTML comments in Markdown files. */ declare const remarkMdat: Plugin<[Options], Root>; export default remarkMdat;