forked from iktakahiro/markdown-it-katex
-
Notifications
You must be signed in to change notification settings - Fork 19
/
types.d.ts
36 lines (30 loc) · 862 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import type MarkdownIt from 'markdown-it';
export interface MarkdownKatexOptions {
/**
* Enable rendering of bare `\begin` `\end` blocks without `$$` delimiters.
*/
readonly enableBareBlocks?: boolean;
/**
* Enable rendering of `$$` match blocks inside of html elements.
*/
readonly enableMathBlockInHtml?: boolean;
/**
* Enable rendering of inline match of html elements.
*/
readonly enableMathInlineInHtml?: boolean;
/**
* Enable rendering of of fenced math code blocks:
*
* ~~~md
* ```math
* \pi
* ```
* ~~~
*/
readonly enableFencedBlocks?: boolean;
/**
* Controls if an exception is thrown on katex errors.
*/
readonly throwOnError?: boolean;
}
export default function (md: MarkdownIt, options?: MarkdownKatexOptions): MarkdownIt;