Move from mathjax to katex
This commit is contained in:
parent
b2c9be7bda
commit
08d2437d49
35 changed files with 64 additions and 214 deletions
17
resources/katex_config.js
Normal file
17
resources/katex_config.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
window.KatexOptions = {
|
||||
delimiters: [
|
||||
{left: '$$', right: '$$', display: true},
|
||||
{left: '$', right: '$', display: false},
|
||||
{left: '\\[', right: '\\]', display: true},
|
||||
{left: "\\(", right: "\\)", display: false},
|
||||
{left: "\\begin{equation}", right: "\\end{equation}", display: true},
|
||||
{left: "\\begin{align}", right: "\\end{align}", display: true},
|
||||
{left: "\\begin{alignat}", right: "\\end{alignat}", display: true},
|
||||
{left: "\\begin{gather}", right: "\\end{gather}", display: true},
|
||||
{left: "\\begin{CD}", right: "\\end{CD}", display: true},
|
||||
],
|
||||
throwOnError : false
|
||||
};
|
||||
window.renderKatex = (elem=document.body) => {
|
||||
renderMathInElement(elem, window.KatexOptions);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue