TmpKatexTest

Difference between r1.7 and the current

@@ -1,24 +1,14 @@
https://katex.org/docs/browser.html
 
Loading as Global:
{{{#!html
#!html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.7/dist/katex.css" integrity="sha384-YiVwk+MBV52+yIvvplLwDxm3iGDI7dYb731lqsN9ASGBpIpJ/dte35lBIuR5oGFU" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.7/dist/katex.js" integrity="sha384-8JJEhHkwY0VI06p7huKe7LqvYgDhSS69qJxWSQGwlB8FmDnAgPKgZGk5Ui0VyuNH" crossorigin="anonymous"></script>
}}}

----
https://katex.org/docs/api.html
In-browser rendering
1.
{{{#!html
<script>katex.render("c = \\pm\\sqrt{a^2 + b^2}", element, { throwOnError: false});</script>
}}}
 
2.
{{{#!html
<script>
katex.render(String.raw`c = \pm\sqrt{a^2 + b^2}`, element, {
throwOnError: false
});
</script>
}}}
 
 
모니위키 자체적으로 inline html에서 script방지하므로 이방법으로는 안됨
[[카텍,KaTeX]]?



katex.render("c = \\pm\\sqrt{a^2 + b^2}", element, { throwOnError: false}); katex.render(String.raw`c = \pm\sqrt{a^2 + b^2}`, element, { throwOnError: false }); 모니위키 자체적으로 inline html에서 script방지하므로 이방법으로는 안됨 [[카텍,KaTeX]]?