Double slash test
Render
No dollar
- A
- /A
- //A
- \A
- \A
Single dollar
- $A$
- $/A$
- $\A$
- $//A$
Double dollar
-
$$ A $$
-
$$ /A $$
-
$$ \\A $$
-
$$ //A $$
Matrix with Single Dollar
- single line
- $\begin{bmatrix}1\2\3\end{bmatrix}$
- multy line
- $\begin{bmatrix} 1\2\3 \end{bmatrix}$
Matrix with Double Dollar
- single line
-
$$ \begin{bmatrix}1\\2\\3\end{bmatrix} $$
-
- multy line
-
$$ \begin{bmatrix} 1\\2\\3 \end{bmatrix} $$
-
Dollar nesting
- Eng
-
$$ \begin{cases} a=1 \text{here $a=1$}\\ a=2 \text{here $a\neq 1$}\\ \end{cases} $$
-
- Chinese
-
$$ \begin{cases} a=1 \text{这里 $a=1$}\\ a=2 \text{那里 $a\neq 1$}\\ \end{cases} $$
-
Markdown confict with katex
Two method for rendering katex
- Render at server side
- Jekyll 中使用 KaTeX SsKatex
- Not sure it could works or not.
- You need set config at
_config.yml
kramdown: math_engine: null
- The
math_engine
be setmathjax
as default - If you wanna use
javascript
for rendering, you’d better set it benull
- For more selection for it, check here.
-
Render at client side -. Require you have
katex.js
andkatex.css
at head, katex will render when you brower open. -. So you need consider about the order of rendering markdown and katex -. For example, you have a md file like$ABC*$123$DE*F$
-. It will convert
$123$DE$
as Italic first -. And then the rendering for katex