feat: add mathjax equation support

main
Xubai Wang 2022-02-18 03:10:48 +08:00
parent 0b9a9f0bdc
commit 89f5951f2d
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ def baseHtmlArray (title : String) (site : Array Html) : HtmlM Html := do
-- TODO Add more js stuff -- TODO Add more js stuff
<script src={s!"{←getRoot}nav.js"}></script> <script src={s!"{←getRoot}nav.js"}></script>
<script src={s!"{←getRoot}search.js"}></script> <script src={s!"{←getRoot}search.js"}></script>
-- mathjax
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</body> </body>
</html> </html>