aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/helpers/katex.html
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2023-01-04 23:25:21 +0000
committerKumar Damani <me@kumardamani.net>2023-01-04 23:25:21 +0000
commit96a1150708a73f0d1fd08c1bb2ab66922853cda9 (patch)
tree1859e7984549a8ba820a69d28e28765fe949580a /layouts/partials/helpers/katex.html
parent610d1f02dd57cbaeccd076ad14ee9efacc5954a5 (diff)
added post for prog-as-artprog-as-art
Diffstat (limited to 'layouts/partials/helpers/katex.html')
-rw-r--r--layouts/partials/helpers/katex.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/helpers/katex.html b/layouts/partials/helpers/katex.html
new file mode 100644
index 0000000..26baa4a
--- /dev/null
+++ b/layouts/partials/helpers/katex.html
@@ -0,0 +1,14 @@
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css" integrity="sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0" crossorigin="anonymous">
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.js" integrity="sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4" crossorigin="anonymous"></script>
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"
+ onload="renderMathInElement(document.body);"></script>
+<script>
+ document.addEventListener("DOMContentLoaded", function() {
+ renderMathInElement(document.body, {
+ delimiters: [
+ {left: "$$", right: "$$", display: true},
+ {left: "$", right: "$", display: false}
+ ]
+ });
+ });
+</script>