UNPKG

markdown-it-caml

Version:

Add caml (semantic) attribute syntax for markdown-it.

27 lines (26 loc) 703 B
/// <reference types="markdown-it" /> import MarkdownIt from 'markdown-it/lib'; import MarkdownIt$0 from "markdown-it"; // option types interface OptAttr { enable: boolean; render: boolean; title: string; } interface OptCssNames { attr: string; wiki: string; invalid: string; attrbox: string; attrboxTitle: string; } interface CamlOptions extends MarkdownIt$0.Options { // metadata functions addAttr?: (env: any, key: string, value: string) => void; // render opts attrs: OptAttr; cssNames: OptCssNames; } declare function caml_plugin(md: MarkdownIt, opts?: Partial<CamlOptions>): void; export type { CamlOptions }; export { caml_plugin as default };