diff options
author | Raphael Aguiar <rmaguiar@tuta.io> | 2023-01-31 23:54:35 +0300 |
---|---|---|
committer | Raphael Aguiar <rmaguiar@tuta.io> | 2023-01-31 23:54:35 +0300 |
commit | fb4319efb1b47a4a047c90601281cabe64e77d49 (patch) | |
tree | c06b467be056c9fb52a56e44413e350597b52e3b | |
parent | 1d4c030669b181547541c9d1ee41339f2f42d025 (diff) |
Revert contributions and minor changes
* Bump KaTeX from 0.16.0 to 0.16.4
* Remove languages I cannot maintain
* Revert font changes (fix Unused Unicode ranges and TTF format)
[200~* Update README with information about fonts and contributions
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | README.md | 17 | ||||
-rw-r--r-- | assets/fonts/OpenSans-Bold.ttf | bin | 129784 -> 0 bytes | |||
-rw-r--r-- | assets/fonts/OpenSans-Italic.ttf | bin | 135380 -> 0 bytes | |||
-rw-r--r-- | assets/fonts/OpenSans-Regular.ttf | bin | 129796 -> 0 bytes | |||
-rw-r--r-- | assets/fonts/Oswald-Bold.ttf | bin | 64184 -> 0 bytes | |||
-rw-r--r-- | assets/fonts/open-sans-v34-latin-700.woff2 | bin | 0 -> 16372 bytes | |||
-rw-r--r-- | assets/fonts/open-sans-v34-latin-italic.woff2 | bin | 0 -> 17820 bytes | |||
-rw-r--r-- | assets/fonts/open-sans-v34-latin-regular.woff2 | bin | 0 -> 16740 bytes | |||
-rw-r--r-- | assets/fonts/oswald-v29-latin-700.woff2 | bin | 0 -> 16328 bytes | |||
-rw-r--r-- | assets/libs/katex@0.16.4/dist/contrib/auto-render.js (renamed from assets/libs/katex@0.16.0/dist/contrib/auto-render.js) | 24 | ||||
-rw-r--r-- | assets/libs/katex@0.16.4/dist/contrib/copy-tex.js (renamed from assets/libs/katex@0.16.0/dist/contrib/copy-tex.js) | 0 | ||||
-rw-r--r-- | assets/libs/katex@0.16.4/dist/contrib/mhchem.js (renamed from assets/libs/katex@0.16.0/dist/contrib/mhchem.js) | 0 | ||||
-rw-r--r-- | assets/libs/katex@0.16.4/dist/katex.css (renamed from assets/libs/katex@0.16.0/dist/katex.css) | 2 | ||||
-rw-r--r-- | assets/libs/katex@0.16.4/dist/katex.js (renamed from assets/libs/katex@0.16.0/dist/katex.js) | 533 | ||||
-rw-r--r-- | assets/scss/fonts/font-face.scss | 11 | ||||
-rw-r--r-- | assets/scss/main.scss | 7 | ||||
-rw-r--r-- | data/default.toml | 2 | ||||
-rw-r--r-- | i18n/id.toml | 168 | ||||
-rw-r--r-- | i18n/uk.toml | 169 | ||||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_AMS-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.ttf) | bin | 63632 -> 63632 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_AMS-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.woff) | bin | 33516 -> 33516 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_AMS-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.woff2) | bin | 28076 -> 28076 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Bold.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.ttf) | bin | 12368 -> 12368 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Bold.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.woff) | bin | 7716 -> 7716 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Bold.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.woff2) | bin | 6912 -> 6912 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.ttf) | bin | 12344 -> 12344 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.woff) | bin | 7656 -> 7656 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2) | bin | 6908 -> 6908 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Bold.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.ttf) | bin | 19584 -> 19584 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Bold.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.woff) | bin | 13296 -> 13296 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Bold.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.woff2) | bin | 11348 -> 11348 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.ttf) | bin | 19572 -> 19572 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.woff) | bin | 13208 -> 13208 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.woff2) | bin | 11316 -> 11316 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Bold.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.ttf) | bin | 51336 -> 51336 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Bold.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.woff) | bin | 29912 -> 29912 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Bold.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.woff2) | bin | 25324 -> 25324 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-BoldItalic.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-BoldItalic.ttf) | bin | 32968 -> 32968 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-BoldItalic.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-BoldItalic.woff) | bin | 19412 -> 19412 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-BoldItalic.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-BoldItalic.woff2) | bin | 16780 -> 16780 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Italic.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.ttf) | bin | 33580 -> 33580 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Italic.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.woff) | bin | 19676 -> 19676 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Italic.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.woff2) | bin | 16988 -> 16988 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.ttf) | bin | 53580 -> 53580 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.woff) | bin | 30772 -> 30772 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.woff2) | bin | 26272 -> 26272 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-BoldItalic.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-BoldItalic.ttf) | bin | 31196 -> 31196 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-BoldItalic.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-BoldItalic.woff) | bin | 18668 -> 18668 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-BoldItalic.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-BoldItalic.woff2) | bin | 16400 -> 16400 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-Italic.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.ttf) | bin | 31308 -> 31308 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-Italic.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.woff) | bin | 18748 -> 18748 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-Italic.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.woff2) | bin | 16440 -> 16440 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Bold.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.ttf) | bin | 24504 -> 24504 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Bold.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.woff) | bin | 14408 -> 14408 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Bold.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.woff2) | bin | 12216 -> 12216 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Italic.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.ttf) | bin | 22364 -> 22364 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Italic.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.woff) | bin | 14112 -> 14112 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Italic.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.woff2) | bin | 12028 -> 12028 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.ttf) | bin | 19436 -> 19436 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.woff) | bin | 12316 -> 12316 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.woff2) | bin | 10344 -> 10344 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Script-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.ttf) | bin | 16648 -> 16648 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Script-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.woff) | bin | 10588 -> 10588 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Script-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.woff2) | bin | 9644 -> 9644 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size1-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.ttf) | bin | 12228 -> 12228 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size1-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.woff) | bin | 6496 -> 6496 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size1-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.woff2) | bin | 5468 -> 5468 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size2-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.ttf) | bin | 11508 -> 11508 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size2-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.woff) | bin | 6188 -> 6188 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size2-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.woff2) | bin | 5208 -> 5208 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size3-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.ttf) | bin | 7588 -> 7588 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size3-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.woff) | bin | 4420 -> 4420 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size3-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.woff2) | bin | 3624 -> 3624 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size4-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.ttf) | bin | 10364 -> 10364 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size4-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.woff) | bin | 5980 -> 5980 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Size4-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.woff2) | bin | 4928 -> 4928 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Typewriter-Regular.ttf (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.ttf) | bin | 27556 -> 27556 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Typewriter-Regular.woff (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.woff) | bin | 16028 -> 16028 bytes | |||
-rw-r--r-- | static/libs/katex@0.16.4/dist/fonts/KaTeX_Typewriter-Regular.woff2 (renamed from static/libs/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.woff2) | bin | 13568 -> 13568 bytes |
80 files changed, 387 insertions, 550 deletions
@@ -1,5 +1,7 @@ public resources +.DS_Store *.bak *.kate-swp -.hugo_build.lock +*.lock + @@ -84,6 +84,16 @@ You can change the default mode and accent colors in the config: presets = [ "#1f676b", "#f3a530", "#902b37", "#1dbc91", "#754e85", "#7fc121", "#a8314a", "#ff7433", "#3e6728", "#c063bd" ] ``` +### Fonts + +By default, this theme uses *Oswald* and *Open Sans* fonts. Latin charset only and `woff2` format, which is supported by most modern browsers. + +If that's not enough for your use case, you'll have to generate a new set yourself. + +Fortunately, it's fairly easy thanks to this tool: [google-webfonts-helper](https://gwfh.mranftl.com/fonts). + +In your project folder, add the font files to a folder named `/assets/fonts` and the CSS content to a file named `/assets/scss/fonts/font-face.scss`. + ### Syntax highlighting This theme comes with two chroma styles, meant to be used with dark and light mode respectively. These are **Monokai** for dark mode and **Solarized Dark** for light mode. @@ -261,7 +271,6 @@ This information will also be used to generate social meta tags (ie.: rel="me" a message = "Aenean lacinia bibendum nulla sed consectetur. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Donec ullamcorper nulla non metus auctor fringilla nullam quis risus." ``` - ## Miscellaneous ### Rich content @@ -394,6 +403,12 @@ copyright = "Copyright © 2008–2021, Steve Francia and the Hugo Authors; All r changeTransition = ".3s ease" ``` +## Contributing + +Currently not accepting contributions. + +If you have any question or suggestion, please feel free to open an issue. + ## Acknowledgements * [Font Awesome](https://fontawesome.com/) and [Fork Awesome](https://forkaweso.me/) for the icons; diff --git a/assets/fonts/OpenSans-Bold.ttf b/assets/fonts/OpenSans-Bold.ttf Binary files differdeleted file mode 100644 index ab4d993..0000000 --- a/assets/fonts/OpenSans-Bold.ttf +++ /dev/null diff --git a/assets/fonts/OpenSans-Italic.ttf b/assets/fonts/OpenSans-Italic.ttf Binary files differdeleted file mode 100644 index 68cff8f..0000000 --- a/assets/fonts/OpenSans-Italic.ttf +++ /dev/null diff --git a/assets/fonts/OpenSans-Regular.ttf b/assets/fonts/OpenSans-Regular.ttf Binary files differdeleted file mode 100644 index e21ff5f..0000000 --- a/assets/fonts/OpenSans-Regular.ttf +++ /dev/null diff --git a/assets/fonts/Oswald-Bold.ttf b/assets/fonts/Oswald-Bold.ttf Binary files differdeleted file mode 100644 index 175af35..0000000 --- a/assets/fonts/Oswald-Bold.ttf +++ /dev/null diff --git a/assets/fonts/open-sans-v34-latin-700.woff2 b/assets/fonts/open-sans-v34-latin-700.woff2 Binary files differnew file mode 100644 index 0000000..e832c2a --- /dev/null +++ b/assets/fonts/open-sans-v34-latin-700.woff2 diff --git a/assets/fonts/open-sans-v34-latin-italic.woff2 b/assets/fonts/open-sans-v34-latin-italic.woff2 Binary files differnew file mode 100644 index 0000000..8da39ae --- /dev/null +++ b/assets/fonts/open-sans-v34-latin-italic.woff2 diff --git a/assets/fonts/open-sans-v34-latin-regular.woff2 b/assets/fonts/open-sans-v34-latin-regular.woff2 Binary files differnew file mode 100644 index 0000000..15339ea --- /dev/null +++ b/assets/fonts/open-sans-v34-latin-regular.woff2 diff --git a/assets/fonts/oswald-v29-latin-700.woff2 b/assets/fonts/oswald-v29-latin-700.woff2 Binary files differnew file mode 100644 index 0000000..9760113 --- /dev/null +++ b/assets/fonts/oswald-v29-latin-700.woff2 diff --git a/assets/libs/katex@0.16.0/dist/contrib/auto-render.js b/assets/libs/katex@0.16.4/dist/contrib/auto-render.js index 6980cdd..0ec4f69 100644 --- a/assets/libs/katex@0.16.0/dist/contrib/auto-render.js +++ b/assets/libs/katex@0.16.4/dist/contrib/auto-render.js @@ -235,11 +235,33 @@ var renderElem = function renderElem(elem, optionsCopy) { if (childNode.nodeType === 3) { // Text node - var frag = renderMathInText(childNode.textContent, optionsCopy); + // Concatenate all sibling text nodes. + // Webkit browsers split very large text nodes into smaller ones, + // so the delimiters may be split across different nodes. + var textContentConcat = childNode.textContent; + var sibling = childNode.nextSibling; + var nSiblings = 0; + + while (sibling && sibling.nodeType === Node.TEXT_NODE) { + textContentConcat += sibling.textContent; + sibling = sibling.nextSibling; + nSiblings++; + } + + var frag = renderMathInText(textContentConcat, optionsCopy); if (frag) { + // Remove extra text nodes + for (var j = 0; j < nSiblings; j++) { + childNode.nextSibling.remove(); + } + i += frag.childNodes.length - 1; elem.replaceChild(frag, childNode); + } else { + // If the concatenated text does not contain math + // the siblings will not either + i += nSiblings; } } else if (childNode.nodeType === 1) { (function () { diff --git a/assets/libs/katex@0.16.0/dist/contrib/copy-tex.js b/assets/libs/katex@0.16.4/dist/contrib/copy-tex.js index 2897f1e..2897f1e 100644 --- a/assets/libs/katex@0.16.0/dist/contrib/copy-tex.js +++ b/assets/libs/katex@0.16.4/dist/contrib/copy-tex.js diff --git a/assets/libs/katex@0.16.0/dist/contrib/mhchem.js b/assets/libs/katex@0.16.4/dist/contrib/mhchem.js index 3109305..3109305 100644 --- a/assets/libs/katex@0.16.0/dist/contrib/mhchem.js +++ b/assets/libs/katex@0.16.4/dist/contrib/mhchem.js diff --git a/assets/libs/katex@0.16.0/dist/katex.css b/assets/libs/katex@0.16.4/dist/katex.css index 258318e..e532aec 100644 --- a/assets/libs/katex@0.16.0/dist/katex.css +++ b/assets/libs/katex@0.16.4/dist/katex.css @@ -130,7 +130,7 @@ border-color: currentColor; } .katex .katex-version::after { - content: "0.16.0"; + content: "0.16.4"; } .katex .katex-mathml { /* Accessibility hack to only show to screen readers diff --git a/assets/libs/katex@0.16.0/dist/katex.js b/assets/libs/katex@0.16.4/dist/katex.js index 01e577b..c6d946e 100644 --- a/assets/libs/katex@0.16.0/dist/katex.js +++ b/assets/libs/katex@0.16.4/dist/katex.js @@ -932,6 +932,43 @@ var path = { shortbaraboveleftharpoon: "M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z", shortrightharpoonabovebar: "M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z" }; +var tallDelim = function tallDelim(label, midHeight) { + switch (label) { + case "lbrack": + return "M403 1759 V84 H666 V0 H319 V1759 v" + midHeight + " v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v" + midHeight + " v1759 h84z"; + + case "rbrack": + return "M347 1759 V0 H0 V84 H263 V1759 v" + midHeight + " v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v" + midHeight + " v1759 h84z"; + + case "vert": + return "M145 15 v585 v" + midHeight + " v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v" + -midHeight + " v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v" + midHeight + " v585 h43z"; + + case "doublevert": + return "M145 15 v585 v" + midHeight + " v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v" + -midHeight + " v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v" + midHeight + " v585 h43z\nM367 15 v585 v" + midHeight + " v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v" + -midHeight + " v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v" + midHeight + " v585 h43z"; + + case "lfloor": + return "M319 602 V0 H403 V602 v" + midHeight + " v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v" + midHeight + " v1715 H319z"; + + case "rfloor": + return "M319 602 V0 H403 V602 v" + midHeight + " v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v" + midHeight + " v1715 H319z"; + + case "lceil": + return "M403 1759 V84 H666 V0 H319 V1759 v" + midHeight + " v602 h84z\nM403 1759 V0 H319 V1759 v" + midHeight + " v602 h84z"; + + case "rceil": + return "M347 1759 V0 H0 V84 H263 V1759 v" + midHeight + " v602 h84z\nM347 1759 V0 h-84 V1759 v" + midHeight + " v602 h84z"; + + case "lparen": + return "M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0," + (midHeight + 84) + "c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-" + (midHeight + 92) + "c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z"; + + case "rparen": + return "M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0," + (midHeight + 9) + "\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-" + (midHeight + 144) + "c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z"; + + default: + // We should not ever get here. + throw new Error("Unknown stretchy delimiter."); + } +}; ;// CONCATENATED MODULE: ./src/tree.js @@ -5484,7 +5521,7 @@ var makeOrd = function makeOrd(group, options, type) { if (lookupSymbol(text, fontName, mode).metrics) { return makeSymbol(text, fontName, mode, options, classes.concat(fontClasses)); - } else if (ligatures.hasOwnProperty(text) && fontName.substr(0, 10) === "Typewriter") { + } else if (ligatures.hasOwnProperty(text) && fontName.slice(0, 10) === "Typewriter") { // Deconstruct ligatures in monospace fonts (\texttt, \tt). var parts = []; @@ -6851,7 +6888,7 @@ var SpaceNode = /*#__PURE__*/function () { * optional replacement from symbols.js. */ var makeText = function makeText(text, mode, options) { - if (src_symbols[mode][text] && src_symbols[mode][text].replace && text.charCodeAt(0) !== 0xD835 && !(ligatures.hasOwnProperty(text) && options && (options.fontFamily && options.fontFamily.substr(4, 2) === "tt" || options.font && options.font.substr(4, 2) === "tt"))) { + if (src_symbols[mode][text] && src_symbols[mode][text].replace && text.charCodeAt(0) !== 0xD835 && !(ligatures.hasOwnProperty(text) && options && (options.fontFamily && options.fontFamily.slice(4, 6) === "tt" || options.font && options.font.slice(4, 6) === "tt"))) { text = src_symbols[mode][text].replace; } @@ -7307,7 +7344,7 @@ var svgSpan = function svgSpan(group, options) { function buildSvgSpan_() { var viewBoxWidth = 400000; // default - var label = group.label.substr(1); + var label = group.label.slice(1); if (utils.contains(["widehat", "widecheck", "widetilde", "utilde"], label)) { // Each type in the `if` statement corresponds to one of the ParseNode @@ -7976,6 +8013,211 @@ defineFunction({ return node; } }); +;// CONCATENATED MODULE: ./src/functions/mclass.js + + + + + + +var mclass_makeSpan = buildCommon.makeSpan; + +function mclass_htmlBuilder(group, options) { + var elements = buildExpression(group.body, options, true); + return mclass_makeSpan([group.mclass], elements, options); +} + +function mclass_mathmlBuilder(group, options) { + var node; + var inner = buildMathML_buildExpression(group.body, options); + + if (group.mclass === "minner") { + node = new mathMLTree.MathNode("mpadded", inner); + } else if (group.mclass === "mord") { + if (group.isCharacterBox) { + node = inner[0]; + node.type = "mi"; + } else { + node = new mathMLTree.MathNode("mi", inner); + } + } else { + if (group.isCharacterBox) { + node = inner[0]; + node.type = "mo"; + } else { + node = new mathMLTree.MathNode("mo", inner); + } // Set spacing based on what is the most likely adjacent atom type. + // See TeXbook p170. + + + if (group.mclass === "mbin") { + node.attributes.lspace = "0.22em"; // medium space + + node.attributes.rspace = "0.22em"; + } else if (group.mclass === "mpunct") { + node.attributes.lspace = "0em"; + node.attributes.rspace = "0.17em"; // thinspace + } else if (group.mclass === "mopen" || group.mclass === "mclose") { + node.attributes.lspace = "0em"; + node.attributes.rspace = "0em"; + } else if (group.mclass === "minner") { + node.attributes.lspace = "0.0556em"; // 1 mu is the most likely option + + node.attributes.width = "+0.1111em"; + } // MathML <mo> default space is 5/18 em, so <mrel> needs no action. + // Ref: https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mo + + } + + return node; +} // Math class commands except \mathop + + +defineFunction({ + type: "mclass", + names: ["\\mathord", "\\mathbin", "\\mathrel", "\\mathopen", "\\mathclose", "\\mathpunct", "\\mathinner"], + props: { + numArgs: 1, + primitive: true + }, + handler: function handler(_ref, args) { + var parser = _ref.parser, + funcName = _ref.funcName; + var body = args[0]; + return { + type: "mclass", + mode: parser.mode, + mclass: "m" + funcName.slice(5), + // TODO(kevinb): don't prefix with 'm' + body: ordargument(body), + isCharacterBox: utils.isCharacterBox(body) + }; + }, + htmlBuilder: mclass_htmlBuilder, + mathmlBuilder: mclass_mathmlBuilder +}); +var binrelClass = function binrelClass(arg) { + // \binrel@ spacing varies with (bin|rel|ord) of the atom in the argument. + // (by rendering separately and with {}s before and after, and measuring + // the change in spacing). We'll do roughly the same by detecting the + // atom type directly. + var atom = arg.type === "ordgroup" && arg.body.length ? arg.body[0] : arg; + + if (atom.type === "atom" && (atom.family === "bin" || atom.family === "rel")) { + return "m" + atom.family; + } else { + return "mord"; + } +}; // \@binrel{x}{y} renders like y but as mbin/mrel/mord if x is mbin/mrel/mord. +// This is equivalent to \binrel@{x}\binrel@@{y} in AMSTeX. + +defineFunction({ + type: "mclass", + names: ["\\@binrel"], + props: { + numArgs: 2 + }, + handler: function handler(_ref2, args) { + var parser = _ref2.parser; + return { + type: "mclass", + mode: parser.mode, + mclass: binrelClass(args[0]), + body: ordargument(args[1]), + isCharacterBox: utils.isCharacterBox(args[1]) + }; + } +}); // Build a relation or stacked op by placing one symbol on top of another + +defineFunction({ + type: "mclass", + names: ["\\stackrel", "\\overset", "\\underset"], + props: { + numArgs: 2 + }, + handler: function handler(_ref3, args) { + var parser = _ref3.parser, + funcName = _ref3.funcName; + var baseArg = args[1]; + var shiftedArg = args[0]; + var mclass; + + if (funcName !== "\\stackrel") { + // LaTeX applies \binrel spacing to \overset and \underset. + mclass = binrelClass(baseArg); + } else { + mclass = "mrel"; // for \stackrel + } + + var baseOp = { + type: "op", + mode: baseArg.mode, + limits: true, + alwaysHandleSupSub: true, + parentIsSupSub: false, + symbol: false, + suppressBaseShift: funcName !== "\\stackrel", + body: ordargument(baseArg) + }; + var supsub = { + type: "supsub", + mode: shiftedArg.mode, + base: baseOp, + sup: funcName === "\\underset" ? null : shiftedArg, + sub: funcName === "\\underset" ? shiftedArg : null + }; + return { + type: "mclass", + mode: parser.mode, + mclass: mclass, + body: [supsub], + isCharacterBox: utils.isCharacterBox(supsub) + }; + }, + htmlBuilder: mclass_htmlBuilder, + mathmlBuilder: mclass_mathmlBuilder +}); +;// CONCATENATED MODULE: ./src/functions/pmb.js + + + + + + +// \pmb is a simulation of bold font. +// The version of \pmb in ambsy.sty works by typesetting three copies +// with small offsets. We use CSS text-shadow. +// It's a hack. Not as good as a real bold font. Better than nothing. +defineFunction({ + type: "pmb", + names: ["\\pmb"], + props: { + numArgs: 1, + allowedInText: true + }, + handler: function handler(_ref, args) { + var parser = _ref.parser; + return { + type: "pmb", + mode: parser.mode, + mclass: binrelClass(args[0]), + body: ordargument(args[0]) + }; + }, + htmlBuilder: function htmlBuilder(group, options) { + var elements = buildExpression(group.body, options, true); + var node = buildCommon.makeSpan([group.mclass], elements, options); + node.style.textShadow = "0.02em 0.01em 0.04px"; + return node; + }, + mathmlBuilder: function mathmlBuilder(group, style) { + var inner = buildMathML_buildExpression(group.body, style); // Wrap with an <mstyle> element. + + var node = new mathMLTree.MathNode("mstyle", inner); + node.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"); + return node; + } +}); ;// CONCATENATED MODULE: ./src/environments/cd.js @@ -8434,13 +8676,12 @@ defineFunction({ names: ["\\\\"], props: { numArgs: 0, - numOptionalArgs: 1, - argTypes: ["size"], + numOptionalArgs: 0, allowedInText: true }, handler: function handler(_ref, args, optArgs) { var parser = _ref.parser; - var size = optArgs[0]; + var size = parser.gullet.future().text === "[" ? parser.parseSizeGroup(true) : null; var newLine = !parser.settings.displayMode || !parser.settings.useStrictBehavior("newLineInDisplayMode", "In LaTeX, \\\\ or \\newline " + "does nothing in display mode"); return { type: "cr", @@ -8885,6 +9126,8 @@ var makeStackedDelim = function makeStackedDelim(delim, heightTotal, center, opt var middle; var repeat; var bottom; + var svgLabel = ""; + var viewBoxWidth = 0; top = repeat = bottom = delim; middle = null; // Also keep track of what font the delimiters are in @@ -8910,44 +9153,64 @@ var makeStackedDelim = function makeStackedDelim(delim, heightTotal, center, opt bottom = "\\Downarrow"; } else if (utils.contains(verts, delim)) { repeat = "\u2223"; + svgLabel = "vert"; + viewBoxWidth = 333; } else if (utils.contains(doubleVerts, delim)) { repeat = "\u2225"; + svgLabel = "doublevert"; + viewBoxWidth = 556; } else if (delim === "[" || delim === "\\lbrack") { top = "\u23A1"; repeat = "\u23A2"; bottom = "\u23A3"; font = "Size4-Regular"; + svgLabel = "lbrack"; + viewBoxWidth = 667; } else if (delim === "]" || delim === "\\rbrack") { top = "\u23A4"; repeat = "\u23A5"; bottom = "\u23A6"; font = "Size4-Regular"; + svgLabel = "rbrack"; + viewBoxWidth = 667; } else if (delim === "\\lfloor" || delim === "\u230A") { repeat = top = "\u23A2"; bottom = "\u23A3"; font = "Size4-Regular"; + svgLabel = "lfloor"; + viewBoxWidth = 667; } else if (delim === "\\lceil" || delim === "\u2308") { top = "\u23A1"; repeat = bottom = "\u23A2"; font = "Size4-Regular"; + svgLabel = "lceil"; + viewBoxWidth = 667; } else if (delim === "\\rfloor" || delim === "\u230B") { repeat = top = "\u23A5"; bottom = "\u23A6"; font = "Size4-Regular"; + svgLabel = "rfloor"; + viewBoxWidth = 667; } else if (delim === "\\rceil" || delim === "\u2309") { top = "\u23A4"; repeat = bottom = "\u23A5"; font = "Size4-Regular"; + svgLabel = "rceil"; + viewBoxWidth = 667; } else if (delim === "(" || delim === "\\lparen") { top = "\u239B"; repeat = "\u239C"; bottom = "\u239D"; font = "Size4-Regular"; + svgLabel = "lparen"; + viewBoxWidth = 875; } else if (delim === ")" || delim === "\\rparen") { top = "\u239E"; repeat = "\u239F"; bottom = "\u23A0"; font = "Size4-Regular"; + svgLabel = "rparen"; + viewBoxWidth = 875; } else if (delim === "\\{" || delim === "\\lbrace") { top = "\u23A7"; middle = "\u23A8"; @@ -9019,33 +9282,60 @@ var makeStackedDelim = function makeStackedDelim(delim, heightTotal, center, opt var depth = realHeightTotal / 2 - axisHeight; // Now, we start building the pieces that will go into the vlist // Keep a list of the pieces of the stacked delimiter - var stack = []; // Add the bottom symbol + var stack = []; + + if (svgLabel.length > 0) { + // Instead of stacking glyphs, create a single SVG. + // This evades browser problems with imprecise positioning of spans. + var midHeight = realHeightTotal - topHeightTotal - bottomHeightTotal; + var viewBoxHeight = Math.round(realHeightTotal * 1000); + var pathStr = tallDelim(svgLabel, Math.round(midHeight * 1000)); + var path = new PathNode(svgLabel, pathStr); + var width = (viewBoxWidth / 1000).toFixed(3) + "em"; + var height = (viewBoxHeight / 1000).toFixed(3) + "em"; + var svg = new SvgNode([path], { + "width": width, + "height": height, + "viewBox": "0 0 " + viewBoxWidth + " " + viewBoxHeight + }); + var wrapper = buildCommon.makeSvgSpan([], [svg], options); + wrapper.height = viewBoxHeight / 1000; + wrapper.style.width = width; + wrapper.style.height = height; + stack.push({ + type: "elem", + elem: wrapper + }); + } else { + // Stack glyphs + // Start by adding the bottom symbol + stack.push(makeGlyphSpan(bottom, font, mode)); + stack.push(lap); // overlap + + if (middle === null) { + // The middle section will be an SVG. Make it an extra 0.016em tall. + // We'll overlap by 0.008em at top and bottom. + var innerHeight = realHeightTotal - topHeightTotal - bottomHeightTotal + 2 * lapInEms; + stack.push(makeInner(repeat, innerHeight, options)); + } else { + // When there is a middle bit, we need the middle part and two repeated + // sections + var _innerHeight = (realHeightTotal - topHeightTotal - bottomHeightTotal - middleHeightTotal) / 2 + 2 * lapInEms; - stack.push(makeGlyphSpan(bottom, font, mode)); - stack.push(lap); // overlap + stack.push(makeInner(repeat, _innerHeight, options)); // Now insert the middle of the brace. - if (middle === null) { - // The middle section will be an SVG. Make it an extra 0.016em tall. - // We'll overlap by 0.008em at top and bottom. - var innerHeight = realHeightTotal - topHeightTotal - bottomHeightTotal + 2 * lapInEms; - stack.push(makeInner(repeat, innerHeight, options)); - } else { - // When there is a middle bit, we need the middle part and two repeated - // sections - var _innerHeight = (realHeightTotal - topHeightTotal - bottomHeightTotal - middleHeightTotal) / 2 + 2 * lapInEms; + stack.push(lap); + stack.push(makeGlyphSpan(middle, font, mode)); + stack.push(lap); + stack.push(makeInner(repeat, _innerHeight, options)); + } // Add the top symbol - stack.push(makeInner(repeat, _innerHeight, options)); // Now insert the middle of the brace. stack.push(lap); - stack.push(makeGlyphSpan(middle, font, mode)); - stack.push(lap); - stack.push(makeInner(repeat, _innerHeight, options)); - } // Add the top symbol + stack.push(makeGlyphSpan(top, font, mode)); + } // Finally, build the vlist - stack.push(lap); - stack.push(makeGlyphSpan(top, font, mode)); // Finally, build the vlist - var newOptions = options.havingBaseStyle(src_Style.TEXT); var inner = buildCommon.makeVList({ positionType: "bottom", @@ -9753,7 +10043,7 @@ var enclose_htmlBuilder = function htmlBuilder(group, options) { // Some groups can return document fragments. Handle those by wrapping // them in a span. var inner = buildCommon.wrapFragment(buildGroup(group.body, options), options); - var label = group.label.substr(1); + var label = group.label.slice(1); var scale = options.sizeMultiplier; var img; var imgShift = 0; // In the LaTeX cancel package, line geometry is slightly different @@ -10235,6 +10525,13 @@ function getHLines(parser) { parser.consumeSpaces(); var nxt = parser.fetch().text; + if (nxt === "\\relax") { + // \relax is an artifact of the \cr macro below + parser.consume(); + parser.consumeSpaces(); + nxt = parser.fetch().text; + } + while (nxt === "\\hline" || nxt === "\\hdashline") { parser.consume(); hlineInfo.push(nxt === "\\hdashline"); @@ -10436,7 +10733,7 @@ function parseArray(parser, _ref, style) { function dCellStyle(envName) { - if (envName.substr(0, 1) === "d") { + if (envName.slice(0, 1) === "d") { return "display"; } else { return "text"; @@ -11400,170 +11697,6 @@ defineFunction({ }; } }); -;// CONCATENATED MODULE: ./src/functions/mclass.js - - - - - - -var mclass_makeSpan = buildCommon.makeSpan; - -function mclass_htmlBuilder(group, options) { - var elements = buildExpression(group.body, options, true); - return mclass_makeSpan([group.mclass], elements, options); -} - -function mclass_mathmlBuilder(group, options) { - var node; - var inner = buildMathML_buildExpression(group.body, options); - - if (group.mclass === "minner") { - node = new mathMLTree.MathNode("mpadded", inner); - } else if (group.mclass === "mord") { - if (group.isCharacterBox) { - node = inner[0]; - node.type = "mi"; - } else { - node = new mathMLTree.MathNode("mi", inner); - } - } else { - if (group.isCharacterBox) { - node = inner[0]; - node.type = "mo"; - } else { - node = new mathMLTree.MathNode("mo", inner); - } // Set spacing based on what is the most likely adjacent atom type. - // See TeXbook p170. - - - if (group.mclass === "mbin") { - node.attributes.lspace = "0.22em"; // medium space - - node.attributes.rspace = "0.22em"; - } else if (group.mclass === "mpunct") { - node.attributes.lspace = "0em"; - node.attributes.rspace = "0.17em"; // thinspace - } else if (group.mclass === "mopen" || group.mclass === "mclose") { - node.attributes.lspace = "0em"; - node.attributes.rspace = "0em"; - } else if (group.mclass === "minner") { - node.attributes.lspace = "0.0556em"; // 1 mu is the most likely option - - node.attributes.width = "+0.1111em"; - } // MathML <mo> default space is 5/18 em, so <mrel> needs no action. - // Ref: https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mo - - } - - return node; -} // Math class commands except \mathop - - -defineFunction({ - type: "mclass", - names: ["\\mathord", "\\mathbin", "\\mathrel", "\\mathopen", "\\mathclose", "\\mathpunct", "\\mathinner"], - props: { - numArgs: 1, - primitive: true - }, - handler: function handler(_ref, args) { - var parser = _ref.parser, - funcName = _ref.funcName; - var body = args[0]; - return { - type: "mclass", - mode: parser.mode, - mclass: "m" + funcName.substr(5), - // TODO(kevinb): don't prefix with 'm' - body: ordargument(body), - isCharacterBox: utils.isCharacterBox(body) - }; - }, - htmlBuilder: mclass_htmlBuilder, - mathmlBuilder: mclass_mathmlBuilder -}); -var binrelClass = function binrelClass(arg) { - // \binrel@ spacing varies with (bin|rel|ord) of the atom in the argument. - // (by rendering separately and with {}s before and after, and measuring - // the change in spacing). We'll do roughly the same by detecting the - // atom type directly. - var atom = arg.type === "ordgroup" && arg.body.length ? arg.body[0] : arg; - - if (atom.type === "atom" && (atom.family === "bin" || atom.family === "rel")) { - return "m" + atom.family; - } else { - return "mord"; - } -}; // \@binrel{x}{y} renders like y but as mbin/mrel/mord if x is mbin/mrel/mord. -// This is equivalent to \binrel@{x}\binrel@@{y} in AMSTeX. - -defineFunction({ - type: "mclass", - names: ["\\@binrel"], - props: { - numArgs: 2 - }, - handler: function handler(_ref2, args) { - var parser = _ref2.parser; - return { - type: "mclass", - mode: parser.mode, - mclass: binrelClass(args[0]), - body: ordargument(args[1]), - isCharacterBox: utils.isCharacterBox(args[1]) - }; - } -}); // Build a relation or stacked op by placing one symbol on top of another - -defineFunction({ - type: "mclass", - names: ["\\stackrel", "\\overset", "\\underset"], - props: { - numArgs: 2 - }, - handler: function handler(_ref3, args) { - var parser = _ref3.parser, - funcName = _ref3.funcName; - var baseArg = args[1]; - var shiftedArg = args[0]; - var mclass; - - if (funcName !== "\\stackrel") { - // LaTeX applies \binrel spacing to \overset and \underset. - mclass = binrelClass(baseArg); - } else { - mclass = "mrel"; // for \stackrel - } - - var baseOp = { - type: "op", - mode: baseArg.mode, - limits: true, - alwaysHandleSupSub: true, - parentIsSupSub: false, - symbol: false, - suppressBaseShift: funcName !== "\\stackrel", - body: ordargument(baseArg) - }; - var supsub = { - type: "supsub", - mode: shiftedArg.mode, - base: baseOp, - sup: funcName === "\\underset" ? null : shiftedArg, - sub: funcName === "\\underset" ? shiftedArg : null - }; - return { - type: "mclass", - mode: parser.mode, - mclass: mclass, - body: [supsub], - isCharacterBox: utils.isCharacterBox(supsub) - }; - }, - htmlBuilder: mclass_htmlBuilder, - mathmlBuilder: mclass_mathmlBuilder -}); ;// CONCATENATED MODULE: ./src/functions/font.js // TODO(kevinb): implement \\sl and \\sc @@ -13188,7 +13321,7 @@ var op_htmlBuilder = function htmlBuilder(grp, options) { if (group.name === "\\oiint" || group.name === "\\oiiint") { // No font glyphs yet, so use a glyph w/o the oval. // TODO: When font glyphs are available, delete this code. - stash = group.name.substr(1); + stash = group.name.slice(1); group.name = stash === "oiint" ? "\\iint" : "\\iiint"; } @@ -14998,6 +15131,7 @@ var functions = _functions; + ;// CONCATENATED MODULE: ./src/Lexer.js /** * The Lexer class handles tokenizing the input in various ways. Since our @@ -15743,7 +15877,7 @@ defineMacro("\\dots", function (context) { if (next in dotsByToken) { thedots = dotsByToken[next]; - } else if (next.substr(0, 4) === '\\not') { + } else if (next.slice(0, 4) === '\\not') { thedots = '\\dotsb'; } else if (next in src_symbols.math) { if (utils.contains(['bin', 'rel'], src_symbols.math[next].group)) { @@ -15880,12 +16014,7 @@ defineMacro("\\tag@literal", function (context) { defineMacro("\\bmod", "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}" + "\\mathbin{\\rm mod}" + "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"); defineMacro("\\pod", "\\allowbreak" + "\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"); defineMacro("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}"); -defineMacro("\\mod", "\\allowbreak" + "\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}" + "{\\rm mod}\\,\\,#1"); // \pmb -- A simulation of bold. -// The version in ambsy.sty works by typesetting three copies of the argument -// with small offsets. We use two copies. We omit the vertical offset because -// of rendering problems that makeVList encounters in Safari. - -defineMacro("\\pmb", "\\html@mathml{" + "\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}" + "{\\mathbf{#1}}"); ////////////////////////////////////////////////////////////////////// +defineMacro("\\mod", "\\allowbreak" + "\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}" + "{\\rm mod}\\,\\,#1"); ////////////////////////////////////////////////////////////////////// // LaTeX source2e // \expandafter\let\expandafter\@normalcr // \csname\expandafter\@gobble\string\\ \endcsname @@ -18293,7 +18422,7 @@ var Parser = /*#__PURE__*/function () { this.settings.reportNonstrict("unicodeTextInMathMode", "Accented Unicode text character \"" + text[0] + "\" used in " + "math mode", nucleus); } - text = unicodeSymbols[text[0]] + text.substr(1); + text = unicodeSymbols[text[0]] + text.slice(1); } // Strip off any combining characters @@ -18564,7 +18693,7 @@ var renderToHTMLTree = function renderToHTMLTree(expression, options) { /** * Current KaTeX version */ - version: "0.16.0", + version: "0.16.4", /** * Renders the given LaTeX into an HTML+MathML combination, and adds diff --git a/assets/scss/fonts/font-face.scss b/assets/scss/fonts/font-face.scss index 87aab3b..1d6eaed 100644 --- a/assets/scss/fonts/font-face.scss +++ b/assets/scss/fonts/font-face.scss @@ -1,5 +1,6 @@ +// Generated with google-webfonts-helper // "A Hassle-Free Way to Self-Host Google Fonts" by Mario Ranftl -// https://google-webfonts-helper.herokuapp.com/fonts +// https://gwfh.mranftl.com/fonts // NOTE // Added the font-display afterwards @@ -12,7 +13,7 @@ $font-display: swap; font-weight: 700; font-display: $font-display; src: local('Oswald'), - url('../fonts/Oswald-Bold.ttf') format('truetype'); /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/oswald-v29-latin-700.woff2') format('woff2'); /* Chrome 26+, Opera 23+, Firefox 39+ */ } @font-face { @@ -21,7 +22,7 @@ $font-display: swap; font-weight: 400; font-display: $font-display; src: local('Open Sans Regular'), local('OpenSans-Regular'), - url('../fonts/OpenSans-Regular.ttf') format('truetype'); /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ } @font-face { @@ -30,7 +31,7 @@ $font-display: swap; font-weight: 700; font-display: $font-display; src: local('Open Sans Bold'), local('OpenSans-Bold'), - url('../fonts/OpenSans-Bold.ttf') format('truetype'); /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/open-sans-v34-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ } @font-face { @@ -39,5 +40,5 @@ $font-display: swap; font-weight: 400; font-display: $font-display; src: local('Open Sans Italic'), local('OpenSans-Italic'), - url('../fonts/OpenSans-Italic.ttf') format('truetype'); /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/open-sans-v34-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ } diff --git a/assets/scss/main.scss b/assets/scss/main.scss index 0c793d2..58700c3 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -679,7 +679,7 @@ article > pre, color: var(--bg);
}
- tr {
+ tbody tr {
transition:
background .2s ease-in-out,
color .2s ease-in-out;
@@ -699,6 +699,11 @@ article > pre, a {
color: var(--dtl);
}
+
+ ::selection {
+ background: $selected-fg;
+ color: var(--accent);
+ }
}
}
}
diff --git a/data/default.toml b/data/default.toml index dc9d610..5495e1d 100644 --- a/data/default.toml +++ b/data/default.toml @@ -17,7 +17,7 @@ [libs] fusejs = "6.6.2" - katex = "0.16.0" + katex = "0.16.4" [imageProcessing] diff --git a/i18n/id.toml b/i18n/id.toml deleted file mode 100644 index 1f28ee4..0000000 --- a/i18n/id.toml +++ /dev/null @@ -1,168 +0,0 @@ -# Header & Footer - -[ariaMainMenu] -other = "Menu Utama." - -[changeAccent] -other = "Ganti aksen warna." - -[changeMode] -other = "Ubah ke mode terang/gelap." - -[noscript] -other = "Tidak dapat mengeksekusi JavaScript, beberapa fitur tidak tersedia." - - -# Pages - -[anchorFor] -other = "Jangkar untuk" - -[tableOfContents] -other = "Konten" - -[publishedOn] -other = "Diterbitkan pada" - -[lastUpdatedOn] -other = "Diperbaharui pada" - -# Footnotes - -[references] -other = "Referensi" - -[seeFootnotes] -other = "Lihat catatan kaki." - -[return] -other = "Kembali" - -[returnToText] -other = "Kembali ke teks" - - -# Contact form - -[name] -other = "Nama" - -[subject] -other = "Subjek" - -[message] -other = "Pesan" - -[submit] -other = "Kirim" - - -# List (layout) - -[tag] -other = "Tag" - -[tags] -other = "Tags" - -[category] -other = "Kategori" - -[categories] -other = "Kategori" - -[ariaPagination] -other = "Navigasi paginasi" - -[ariaGoToPage] -other = "Ke halaman {{ .PageNumber }}." - -[ariaGoToFirst] -other = "Ke halaman pertama" - -[ariaGoToNext] -other = "Ke halaman berikut" - -[ariaGoToPrev] -other = "Ke halaman sebelum" - -[ariaGoToLast] -other = "Ke halaman terakhir" - - -# List (meta tags) - -[page] -other = "halaman" - -[of] -other = "dari" - -[posts] -other = "Posts" - -[postsUnderTag] -other = "Posts didalam tag \"{{ .Title }}\"." - -[postsUnderCategory] -other = "Posts didalam kategori \"{{ .Title }}\"." - -[pageContaining] -other = "Halaman yang berisi" - - -# Search form - -[searchLabel] -other = "Cari" - -[searchAriaButton] -other = "Jalankan pencarian" - -[searchInput] -other = "Bidang pencarian. Terima dari {{ .minLength }} sampai {{ .maxLength }} karakter." - - -# Search results page - -[searchNoPageFound] -other = "Halaman tidak ditemukan" - -[searchResultsFor] -other = "Hasil pencarian untuk" - -[searchOnePageFound] -other = "Satu halaman ditemukan" - -[searchPagesFound] -other = "Beberapa halaman ditemukan" - -[searchProcessing] -other = "Memproses pencarian..." - -[searchAwaitingSearch] -other = "Menunggu pencarian" - -[searchTooMany] -other = "Terlalu banyak halaman ditemukan. Coba ulangi pencarian dengan isi yang berbeda." - - -# Translations - -[alsoAvailable] -other = "Juga tersedia dalam" - -[and] -other = " dan " - - -# Misc - -[missingCodec] -other = "Browser ini tidak mendukung HTML5 audio/video" - -[boxContainingCode] -other = "Kotak berisi sampel kode" - -[boxContainingExpression] -other = "Kotak berisi ekspresi" diff --git a/i18n/uk.toml b/i18n/uk.toml deleted file mode 100644 index 107b0eb..0000000 --- a/i18n/uk.toml +++ /dev/null @@ -1,169 +0,0 @@ -# Header & Footer - -[ariaMainMenu] -other = "Головне меню." - -[changeAccent] -other = "Змінити колір." - -[changeMode] -other = "Змінити світлий/темний режим." - -[noscript] -other = "Неможливо запустити JavaScript. Деякі функції недоступні." - - -# Pages - -[anchorFor] -other = "Якір для" - -[tableOfContents] -other = "Зміст" - -[publishedOn] -other = "Опубліковано:" - -[lastUpdatedOn] -other = "Останній раз оновлено:" - - -# Footnotes - -[references] -other = "Джерела" - -[seeFootnotes] -other = "Дивитися виноски." - -[return] -other = "Повернутися" - -[returnToText] -other = "Повернутися до тексту." - - -# Contact form - -[name] -other = "Ім'я" - -[subject] -other = "Тема" - -[message] -other = "Повідомлення" - -[submit] -other = "Відправити" - - -# List (layout) - -[tag] -other = "Тег" - -[tags] -other = "Теги" - -[category] -other = "Категорія" - -[categories] -other = "Категорії" - -[ariaPagination] -other = "Навігація по сторінках." - -[ariaGoToPage] -other = "Перейти на сторінку {{ .PageNumber }}." - -[ariaGoToFirst] -other = "Перша сторінка." - -[ariaGoToNext] -other = "Наступна." - -[ariaGoToPrev] -other = "Попередня." - -[ariaGoToLast] -other = "Остання." - - -# List (meta tags) - -[page] -other = "сторінка" - -[of] -other = "з" - -[posts] -other = "Дописи" - -[postsUnderTag] -other = "Дописи під тегом \"{{ .Title }}\"" - -[postsUnderCategory] -other = "Дописи під категорією \"{{ .Title }}\"." - -[pageContaining] -other = "Сторінка містить" - - -# Search form - -[searchLabel] -other = "Пошук" - -[searchAriaButton] -other = "Запустити пошук." - -[searchInput] -other = "Поле пошуку. Приймає від {{ .minLength }} до {{ .maxLength }} символів." - - -# Search results page - -[searchNoPageFound] -other = "Сторінок не було знайдено." - -[searchResultsFor] -other = "Результати для пошукового запиту" - -[searchOnePageFound] -other = "Одна сторінка знайдена" - -[searchPagesFound] -other = "сторінки знайдені" - -[searchProcessing] -other = "Обробка пошуку..." - -[searchAwaitingSearch] -other = "В очікуванні результату." - -[searchTooMany] -other = "Знайдено забагато сторінок. Спробуйте повторити пошук за іншим терміном." - - -# Translations - -[alsoAvailable] -other = "Також доступно" - -[and] -other = " та " - - -# Misc - -[missingCodec] -other = "Браузер не підтримує HTML5 аудіо/відео." - -[boxContainingCode] -other = "Поле, що містить код." - -[boxContainingExpression] -other = "Поле, що містить вираз." diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_AMS-Regular.ttf Binary files differindex c6f9a5e..c6f9a5e 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_AMS-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_AMS-Regular.woff Binary files differindex b804d7b..b804d7b 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_AMS-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_AMS-Regular.woff2 Binary files differindex 0acaaff..0acaaff 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_AMS-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Bold.ttf Binary files differindex 9ff4a5e..9ff4a5e 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Bold.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Bold.woff Binary files differindex 9759710..9759710 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Bold.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Bold.woff2 Binary files differindex f390922..f390922 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Bold.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Regular.ttf Binary files differindex f522294..f522294 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Regular.woff Binary files differindex 9bdd534..9bdd534 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Regular.woff2 Binary files differindex 75344a1..75344a1 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Caligraphic-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Bold.ttf Binary files differindex 4e98259..4e98259 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Bold.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Bold.woff Binary files differindex e7730f6..e7730f6 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Bold.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Bold.woff2 Binary files differindex 395f28b..395f28b 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Bold.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Regular.ttf Binary files differindex b8461b2..b8461b2 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Regular.woff Binary files differindex acab069..acab069 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Regular.woff2 Binary files differindex 735f694..735f694 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Fraktur-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Bold.ttf Binary files differindex 4060e62..4060e62 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Bold.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Bold.woff Binary files differindex f38136a..f38136a 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Bold.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Bold.woff2 Binary files differindex ab2ad21..ab2ad21 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Bold.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-BoldItalic.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-BoldItalic.ttf Binary files differindex dc00797..dc00797 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-BoldItalic.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-BoldItalic.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-BoldItalic.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-BoldItalic.woff Binary files differindex 67807b0..67807b0 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-BoldItalic.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-BoldItalic.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-BoldItalic.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-BoldItalic.woff2 Binary files differindex 5931794..5931794 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-BoldItalic.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-BoldItalic.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Italic.ttf Binary files differindex 0e9b0f3..0e9b0f3 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Italic.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Italic.woff Binary files differindex 6f43b59..6f43b59 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Italic.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Italic.woff2 Binary files differindex b50920e..b50920e 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Italic.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Regular.ttf Binary files differindex dd45e1e..dd45e1e 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Regular.woff Binary files differindex 21f5812..21f5812 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Regular.woff2 Binary files differindex eb24a7b..eb24a7b 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Main-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-BoldItalic.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-BoldItalic.ttf Binary files differindex 728ce7a..728ce7a 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-BoldItalic.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-BoldItalic.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-BoldItalic.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-BoldItalic.woff Binary files differindex 0ae390d..0ae390d 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-BoldItalic.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-BoldItalic.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-BoldItalic.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-BoldItalic.woff2 Binary files differindex 2965702..2965702 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-BoldItalic.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-BoldItalic.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-Italic.ttf Binary files differindex 70d559b..70d559b 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-Italic.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-Italic.woff Binary files differindex eb5159d..eb5159d 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-Italic.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-Italic.woff2 Binary files differindex 215c143..215c143 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Math-Italic.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Bold.ttf Binary files differindex 2f65a8a..2f65a8a 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Bold.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Bold.woff Binary files differindex 8d47c02..8d47c02 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Bold.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Bold.woff2 Binary files differindex cfaa3bd..cfaa3bd 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Bold.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Italic.ttf Binary files differindex d5850df..d5850df 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Italic.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Italic.woff Binary files differindex 7e02df9..7e02df9 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Italic.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Italic.woff2 Binary files differindex 349c06d..349c06d 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Italic.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Regular.ttf Binary files differindex 537279f..537279f 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Regular.woff Binary files differindex 31b8482..31b8482 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Regular.woff2 Binary files differindex a90eea8..a90eea8 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_SansSerif-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Script-Regular.ttf Binary files differindex fd679bf..fd679bf 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Script-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Script-Regular.woff Binary files differindex 0e7da82..0e7da82 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Script-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Script-Regular.woff2 Binary files differindex b3048fc..b3048fc 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Script-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size1-Regular.ttf Binary files differindex 871fd7d..871fd7d 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size1-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size1-Regular.woff Binary files differindex 7f292d9..7f292d9 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size1-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size1-Regular.woff2 Binary files differindex c5a8462..c5a8462 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size1-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size2-Regular.ttf Binary files differindex 7a212ca..7a212ca 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size2-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size2-Regular.woff Binary files differindex d241d9b..d241d9b 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size2-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size2-Regular.woff2 Binary files differindex e1bccfe..e1bccfe 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size2-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size3-Regular.ttf Binary files differindex 00bff34..00bff34 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size3-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size3-Regular.woff Binary files differindex e6e9b65..e6e9b65 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size3-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size3-Regular.woff2 Binary files differindex 249a286..249a286 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size3-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size4-Regular.ttf Binary files differindex 74f0892..74f0892 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size4-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size4-Regular.woff Binary files differindex e1ec545..e1ec545 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size4-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size4-Regular.woff2 Binary files differindex 680c130..680c130 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Size4-Regular.woff2 diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.ttf b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Typewriter-Regular.ttf Binary files differindex c83252c..c83252c 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.ttf +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Typewriter-Regular.ttf diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.woff b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Typewriter-Regular.woff Binary files differindex 2432419..2432419 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.woff +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Typewriter-Regular.woff diff --git a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.woff2 b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Typewriter-Regular.woff2 Binary files differindex 771f1af..771f1af 100644 --- a/static/libs/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.woff2 +++ b/static/libs/katex@0.16.4/dist/fonts/KaTeX_Typewriter-Regular.woff2 |