17 lines
492 B
TypeScript
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
|
|
}
|