Skip to content

Commit c5db16b

Browse files
authored
Merge pull request #567 from sylhare/katex-0.17.0
Update KaTeX to v0.17.0
2 parents 5054321 + aa56685 commit c5db16b

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

_includes/default/head.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbZUBVs2mbGk8cFoTfurqEOk6sD3+6VUuY3" crossorigin="anonymous"></script>
4141
{% endif %}
4242
43-
<!-- KaTeX 0.16.38 -->
43+
<!-- KaTeX 0.17.0 -->
4444
{% if site.katex or site.theme_settings.katex %}
4545
<script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
4646
<script defer src="{{ '/assets/js/vendor/katex.auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>

_sass/external/_katex.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* KaTeX v0.16.38
2+
* KaTeX v0.17.0
33
* Plus added customizations for the theme
44
*/
55

_sass/external/katex/katex.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ $katex-font-path: "../../assets/fonts/katex" !default;
144144
.katex {
145145
font: normal 1.21em KaTeX_Main, Times New Roman, serif;
146146
line-height: 1.2;
147+
position: relative;
147148
text-indent: 0;
148149
text-rendering: auto;
149150
}
@@ -154,13 +155,14 @@ $katex-font-path: "../../assets/fonts/katex" !default;
154155
border-color: currentColor;
155156
}
156157
.katex .katex-version::after {
157-
content: "0.16.38";
158+
content: "0.17.0";
158159
}
159160
.katex .katex-mathml {
160161
/* Accessibility hack to only show to screen readers
161162
Found at: http://a11yproject.com/posts/how-to-hide-content/ */
162163
position: absolute;
163-
clip: rect(1px, 1px, 1px, 1px);
164+
-webkit-clip-path: inset(50%);
165+
clip-path: inset(50%);
164166
padding: 0;
165167
border: 0;
166168
height: 1px;
@@ -388,8 +390,8 @@ $katex-font-path: "../../assets/fonts/katex" !default;
388390
.katex .sqrt > .root {
389391
/* These values are taken from the definition of `\r@@t`,
390392
`\mkern 5mu` and `\mkern -10mu`. */
391-
margin-left: 0.2777777778em;
392-
margin-right: -0.5555555556em;
393+
margin-left: 0.2777777778em;
394+
margin-right: -0.5555555556em;
393395
}
394396
.katex .sizing.reset-size1.size1,
395397
.katex .fontsize-ensurer.reset-size1.size1 {

assets/js/vendor/katex.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"katex": {
3-
"version": "0.16.38"
3+
"version": "0.17.0"
44
},
55
"mermaid": {
66
"version": "11.13.0"

0 commit comments

Comments
 (0)