Skip to content

Commit

Permalink
Fix layout forced
Browse files Browse the repository at this point in the history
  • Loading branch information
humrochagf committed Nov 20, 2022
1 parent 1c7d7c4 commit 4cb7e99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion layouts/partials/katex.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@
<script defer src="{{ "katex/katex.min.js" | absURL }}"></script>

<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src="{{ "katex/contrib/auto-render.min.js" | absURL }}" onload="renderMathInElement(document.body);"></script>
<script defer src="{{ "katex/contrib/auto-render.min.js" | absURL }}"></script>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
renderMathInElement(document.body);
});
</script>

0 comments on commit 4cb7e99

Please sign in to comment.