Merge pull request #190 from Axotot1/patch-1
Update math.html for inline Latex Support
This commit is contained in:
commit
3d9563e3cf
1 changed files with 15 additions and 1 deletions
|
@ -15,5 +15,19 @@
|
||||||
src="https://cdn.jsdelivr.net/npm/katex@0.16.7/dist/contrib/auto-render.min.js"
|
src="https://cdn.jsdelivr.net/npm/katex@0.16.7/dist/contrib/auto-render.min.js"
|
||||||
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05"
|
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05"
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
onload="renderMathInElement(document.body);"
|
|
||||||
></script>
|
></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>
|
||||||
|
|
Loading…
Reference in a new issue