Files
mathew/frontend/types/markdown-it-texmath.d.ts
2026-09-30 01:49:35 +02:00

17 lines
492 B
TypeScript

declare module 'markdown-it-texmath' {
import type MarkdownIt from 'markdown-it'
interface TexmathOptions {
engine?: unknown
delimiters?: 'dollars' | 'dollars-with- spaces' | 'brackets' | 'dollars-and-brackets'
katexOptions?: Record<string, unknown>
macros?: Record<string, string>
outerSpace?: boolean
strict?: boolean | 'warn' | 'ignore'
errorColor?: string
}
function texmath(md: MarkdownIt, options?: TexmathOptions): void
export default texmath
}