Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add docsify-latex and MathJax to support formulas #12

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading