improve tex (mathjax) support
This commit is contained in:
parent
10130c4963
commit
44f8ee0b7d
11
content/posts/test-tex.md
Normal file
11
content/posts/test-tex.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: "Test Tex"
|
||||||
|
date: 2022-08-26T22:28:10+08:00
|
||||||
|
mathjax: true
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
{{< texi `\varphi` >}}
|
||||||
|
{{< texd `\begin{aligned}
|
||||||
|
\varphi &\Rightarrow \psi \\
|
||||||
|
\varnothing &\rightarrow A
|
||||||
|
\end{aligned}` >}}
|
3
layouts/shortcodes/texd.html
Normal file
3
layouts/shortcodes/texd.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<span>
|
||||||
|
$${{ .Get 0 }}$$
|
||||||
|
</span>
|
3
layouts/shortcodes/texi.html
Normal file
3
layouts/shortcodes/texi.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<span>
|
||||||
|
\({{ .Get 0 }}\)
|
||||||
|
</span>
|
Loading…
x
Reference in New Issue
Block a user