Skip to content

Commit

Permalink
Merge pull request #473 from sylhare/katex-update
Browse files Browse the repository at this point in the history
Update KaTeX to v0.16.11
  • Loading branch information
sylhare authored Nov 22, 2024
2 parents cb57bd9 + 0865360 commit 02abbc2
Show file tree
Hide file tree
Showing 4 changed files with 439 additions and 436 deletions.
2 changes: 1 addition & 1 deletion _includes/default/head.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
{% endif %}
<!-- KaTeX 0.16.9 -->
<!-- KaTeX 0.16.11 -->
{% if site.katex or site.theme_settings.katex %}
<script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
<script defer src="{{ '/assets/js/vendor/katex.auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
Expand Down
10 changes: 6 additions & 4 deletions _sass/external/_katex.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*!
* KaTeX v0.16.9
* Plus added customizations for the theme and font path
* KaTeX v0.16.11
* Plus added customizations for the theme
*/
$katex-font-path: "../../assets/fonts/katex" !default;

@use "katex/katex";

.katex-display {
@media screen and (max-width: $sm-break) {
overflow-x: auto;
Expand All @@ -20,4 +22,4 @@ $katex-font-path: "../../assets/fonts/katex" !default;
width: 100%;
}

@import "katex/katex";

Loading

0 comments on commit 02abbc2

Please sign in to comment.