UNPKG

remark-custom-container

Version:

remark parser plugin for custom directive in markdown

24 lines 686 B
import type { Plugin } from "unified"; export declare const REGEX_BEGIN: RegExp; export declare const REGEX_END: RegExp; export interface CustomContainerOptions { /** * @defaultValue "remark-container" */ className?: string; /** * @defaultValue "div" */ containerTag?: string; /** * @defaultValue {className: string[]} */ titleElement?: Record<string, unknown> | null; /** * @defaultValue undefined */ additionalProperties?: (className?: string, title?: string) => Record<string, unknown>; } export declare const plugin: Plugin<[CustomContainerOptions?]>; export default plugin; //# sourceMappingURL=index.d.ts.map