Skip to content

Commit

Permalink
feat: add docsify-latex and MathJax to support formulas
Browse files Browse the repository at this point in the history
  • Loading branch information
Tseing committed Oct 14, 2024
1 parent 0b38474 commit 94d85db
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/tutorials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ Chinese : 更新为自己使用的镜像
你好,我不会说中文,所以随便复制粘贴了一些东西。

`日本語は話せません`

## $\mathrm{Hello,}\ \LaTeX\mathrm{!}$ in title

Make some $\LaTeX$ formulas here:

$$\Re{z} =\frac{n\pi \dfrac{\theta +\psi}{2}}{
\left(\dfrac{\theta +\psi}{2}\right)^2 + \left( \dfrac{1}{2}
\log \left\lvert\dfrac{B}{A}\right\rvert\right)^2}$$

And I can insert some inline formulas in articles like $2^k-\binom{k}{1}2^{k-1}+\binom{k}{2}2^{k-2}$ and $\frac{1}{\sqrt{\pi}}$.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</script>
<!-- Docsify v4 -->
<script src="./resources/js/docsify.js"></script>
<script src="//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script src="./resources/js/all.js"></script>
</body>
</html>
9 changes: 9 additions & 0 deletions resources/js/docsify-latex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94d85db

Please sign in to comment.