mirror of
https://github.com/dsec-hub/dsec-notebook.git
synced 2026-09-22 07:24:27 +00:00
22 lines
456 B
TypeScript
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;
|
|
}
|