Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update KaTeX to v0.16.11 #473

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading