1
0
Fork 0

Update math.html for inline Latex Support

This commit is contained in:
Axotot1 2023-08-27 15:30:16 +08:00 committed by GitHub
parent 9e07ffeb38
commit abc087bce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,5 +15,19 @@
src="https://cdn.jsdelivr.net/npm/katex@0.16.7/dist/contrib/auto-render.min.js"
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05"
crossorigin="anonymous"
onload="renderMathInElement(document.body);"
></script>
<script>
document.addEventListener("DOMContentLoaded", () =>
renderMathInElement(document.body, {
// customised options
// • auto-render specific keys, e.g.:
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false},
],
// • rendering keys, e.g.:
throwOnError : false
})
);
</script>