Skip to content

Commit

Permalink
Update KaTeX customs
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Nov 22, 2024
1 parent 756b2f1 commit 0865360
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 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";

2 changes: 1 addition & 1 deletion _sass/external/katex/katex.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$katex-font-path: "../../assets/fonts/katex" !default;
$font-family_1: KaTeX_Main;
$font-family_2: KaTeX_SansSerif;
$font-family_3: KaTeX_Typewriter;
Expand Down Expand Up @@ -182,7 +183,6 @@ $border-color_1: currentColor;
}
.textsf {
font-family: $font-family_2;
font-family: $font-family_2;
}
.texttt {
font-family: $font-family_3;
Expand Down

0 comments on commit 0865360

Please sign in to comment.