dsec-notebook/src/markdown-it-texmath.d.ts
2026-09-03 09:07:20 +08:00

22 lines
456 B
TypeScript

declare module "markdown-it-texmath" {
import type MarkdownIt from "markdown-it";
import type katex from "katex";
type Delimiter =
| "dollars"
| "brackets"
| "doxygen"
| "gitlab"
| "julia"
| "kramdown"
| "beg_end";
interface TexmathOptions {
engine: typeof katex;
delimiters?: Delimiter | Delimiter[];
katexOptions?: katex.KatexOptions;
}
const texmath: MarkdownIt.PluginWithOptions<TexmathOptions>;
export default texmath;
}