UNPKG

remarkable-plugin-heading-id

Version:
9 lines (8 loc) 378 B
import Remarkable from "remarkable/lib"; declare const headings: readonly ["h1", "h2", "h3", "h4", "h5", "h6"]; interface PluginOptions { createId?: (level: 1 | 2 | 3 | 4 | 5 | 6, content: string, idx: number) => string; targets?: typeof headings[number][]; } export declare const remarkablePluginHeadingId: (md: Remarkable, options?: PluginOptions) => void; export {};