Skip to content

Commit

Permalink
self host katex (#350)
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <[email protected]>
  • Loading branch information
pingyu authored Nov 27, 2023
1 parent 0eaf3ca commit c061417
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/math.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Deep Dive includes math, so include a renderer on the page. -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.css" integrity="sha384-D+9gmBxUQogRLqvARvNLmA9hS2x//eK1FhVb9PiU86gmcrBrJAQT8okdJ4LMp2uv" crossorigin="anonymous">
<link rel="stylesheet" href="/npm/katex-0.10.0-rc.1/katex.min.css" integrity="sha384-D+9gmBxUQogRLqvARvNLmA9hS2x//eK1FhVb9PiU86gmcrBrJAQT8okdJ4LMp2uv">
<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.js" integrity="sha384-483A6DwYfKeDa0Q52fJmxFXkcPCFfnXMoXblOkJ4JcA8zATN6Tm78UNL72AKk+0O" crossorigin="anonymous"></script>
<script defer src="/npm/katex-0.10.0-rc.1/katex.min.js" integrity="sha384-483A6DwYfKeDa0Q52fJmxFXkcPCFfnXMoXblOkJ4JcA8zATN6Tm78UNL72AKk+0O"></script>
<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/contrib/auto-render.min.js" integrity="sha384-yACMu8JWxKzSp/C1YV86pzGiQ/l1YUfE8oPuahJQxzehAjEt2GiQuy/BIvl9KyeF" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
<script defer src="/npm/katex-0.10.0-rc.1/auto-render.min.js" integrity="sha384-yACMu8JWxKzSp/C1YV86pzGiQ/l1YUfE8oPuahJQxzehAjEt2GiQuy/BIvl9KyeF" onload="renderMathInElement(document.body);"></script>
1 change: 1 addition & 0 deletions static/npm/katex-0.10.0-rc.1/auto-render.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions static/npm/katex-0.10.0-rc.1/katex.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/npm/katex-0.10.0-rc.1/katex.min.js

Large diffs are not rendered by default.

0 comments on commit c061417

Please sign in to comment.