Update math.html for inline Latex Support
This commit is contained in:
parent
9e07ffeb38
commit
abc087bce8
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"
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue