katex 0.13.13 → 0.13.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +32 -5
  3. package/contrib/auto-render/test/auto-render-spec.js +3 -0
  4. package/contrib/copy-tex/README.md +3 -3
  5. package/contrib/mathtex-script-type/README.md +5 -5
  6. package/contrib/mhchem/README.md +1 -1
  7. package/dist/README.md +32 -5
  8. package/dist/contrib/auto-render.mjs +1 -1
  9. package/dist/contrib/render-a11y-string.mjs +1 -1
  10. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  11. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  12. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  13. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  14. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  15. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  16. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  17. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  18. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  19. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  20. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  21. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  22. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  23. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  24. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  25. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  26. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  27. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  28. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  29. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  30. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  31. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  32. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  33. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  34. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  35. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  36. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  37. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  38. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  39. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  40. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  41. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  42. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  43. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  44. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  45. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  46. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  47. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  48. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  49. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  50. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  51. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  52. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  53. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  54. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  55. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  56. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  57. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  58. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  59. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  60. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  61. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  62. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  63. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  64. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  65. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  66. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  67. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  68. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  69. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  70. package/dist/katex.css +1 -1
  71. package/dist/katex.js +2356 -2275
  72. package/dist/katex.min.css +1 -1
  73. package/dist/katex.min.js +1 -1
  74. package/dist/katex.mjs +2512 -2434
  75. package/katex.js +1 -1
  76. package/package.json +22 -18
  77. package/src/MacroExpander.js +11 -3
  78. package/src/Namespace.js +10 -0
  79. package/src/Parser.js +17 -9
  80. package/src/Settings.js +1 -1
  81. package/src/defineMacro.js +118 -0
  82. package/src/fontMetrics.js +0 -2
  83. package/src/fontMetricsData.js +7 -7
  84. package/src/fonts/Makefile +4 -4
  85. package/src/fonts/default.cfg +1 -1
  86. package/src/fonts/generate_fonts.py +3 -3
  87. package/src/functions/accent.js +11 -4
  88. package/src/functions/char.js +13 -2
  89. package/src/functions/operatorname.js +1 -1
  90. package/src/macros.js +5 -112
  91. package/src/metrics/README.md +1 -1
  92. package/src/metrics/extract_tfms.py +3 -3
  93. package/src/metrics/extract_ttfs.py +2 -2
  94. package/src/metrics/format_json.py +1 -1
  95. package/src/symbols.js +4 -3
  96. package/src/unicodeAccents.js +1 -0
package/CHANGELOG.md CHANGED
@@ -1,6 +1,42 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file. This CHANGELOG roughly follows the guidelines from [www.keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
3
3
 
4
+ ## [0.13.18](https://github.com/KaTeX/KaTeX/compare/v0.13.17...v0.13.18) (2021-09-02)
5
+
6
+
7
+ ### Features
8
+
9
+ * unicode support for minus and asterisk operators ([#3227](https://github.com/KaTeX/KaTeX/issues/3227)) ([9dbfc1c](https://github.com/KaTeX/KaTeX/commit/9dbfc1c91725a9db348ce212488690147b9b9dd4)), closes [#3225](https://github.com/KaTeX/KaTeX/issues/3225)
10
+
11
+ ## [0.13.17](https://github.com/KaTeX/KaTeX/compare/v0.13.16...v0.13.17) (2021-09-01)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **fonts:** remove hints from unknown symbols ([#3222](https://github.com/KaTeX/KaTeX/issues/3222)) ([9420f8a](https://github.com/KaTeX/KaTeX/commit/9420f8a2a98442158a9cd2b3fd650092d216d0a2)), closes [#3219](https://github.com/KaTeX/KaTeX/issues/3219)
17
+
18
+ ## [0.13.16](https://github.com/KaTeX/KaTeX/compare/v0.13.15...v0.13.16) (2021-08-28)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * \char support for >16-bit Unicode characters ([#3006](https://github.com/KaTeX/KaTeX/issues/3006)) ([ff1734f](https://github.com/KaTeX/KaTeX/commit/ff1734f7c4882fb350cb0e1f366f04ce63675643)), closes [#3004](https://github.com/KaTeX/KaTeX/issues/3004)
24
+ * remove local macros upon parse error ([#3114](https://github.com/KaTeX/KaTeX/issues/3114)) ([a6f29e3](https://github.com/KaTeX/KaTeX/commit/a6f29e36121a31b46866d1985bbc86a06080fbd4)), closes [#3122](https://github.com/KaTeX/KaTeX/issues/3122)
25
+
26
+ ## [0.13.15](https://github.com/KaTeX/KaTeX/compare/v0.13.14...v0.13.15) (2021-08-28)
27
+
28
+
29
+ ### Features
30
+
31
+ * text-mode cedilla accent via \c ([#3036](https://github.com/KaTeX/KaTeX/issues/3036)) ([952fb84](https://github.com/KaTeX/KaTeX/commit/952fb844da9c99d5fca41a87b86e8857a677c899)), closes [#638](https://github.com/KaTeX/KaTeX/issues/638)
32
+
33
+ ## [0.13.14](https://github.com/KaTeX/KaTeX/compare/v0.13.13...v0.13.14) (2021-08-28)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **fonts:** update fonts dependencies ([#2866](https://github.com/KaTeX/KaTeX/issues/2866)) ([ea409ea](https://github.com/KaTeX/KaTeX/commit/ea409eaf1d7f8fe712a966edc66c545ae5fe5425))
39
+
4
40
  ## [0.13.13](https://github.com/KaTeX/KaTeX/compare/v0.13.12...v0.13.13) (2021-07-21)
5
41
 
6
42
 
package/README.md CHANGED
@@ -7,6 +7,7 @@
7
7
  [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/katex/badge?style=rounded)](https://www.jsdelivr.com/package/npm/katex)
8
8
  ![katex.min.js size](https://img.badgesize.io/https://unpkg.com/katex/dist/katex.min.js?compression=gzip)
9
9
  [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/KaTeX/KaTeX)
10
+ [![Financial Contributors on Open Collective](https://opencollective.com/katex/all/badge.svg?label=financial+contributors)](https://opencollective.com/katex)
10
11
 
11
12
  KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.
12
13
 
@@ -30,13 +31,13 @@ Try out KaTeX [on the demo page](https://katex.org/#demo)!
30
31
  <!-- KaTeX requires the use of the HTML5 doctype. Without it, KaTeX may not render properly -->
31
32
  <html>
32
33
  <head>
33
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
34
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.css" integrity="sha384-zTROYFVGOfTw7JV7KUu8udsvW2fx4lWOsCEDqhBreBwlHI4ioVRtmIvEThzJHGET" crossorigin="anonymous">
34
35
 
35
36
  <!-- The loading of KaTeX is deferred to speed up page rendering -->
36
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script>
37
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.js" integrity="sha384-GxNFqL3r9uRJQhR+47eDxuPoNE7yLftQM8LcxzgS4HT73tp970WS/wV5p8UzCOmb" crossorigin="anonymous"></script>
37
38
 
38
39
  <!-- To automatically render math in text elements, include the auto-render extension: -->
39
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"
40
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"
40
41
  onload="renderMathInElement(document.body);"></script>
41
42
  </head>
42
43
  ...
@@ -83,9 +84,35 @@ hover text. For other available options, see the
83
84
 
84
85
  Learn more about using KaTeX [on the website](https://katex.org)!
85
86
 
86
- ## Contributing
87
+ ## Contributors
87
88
 
88
- See [CONTRIBUTING.md](CONTRIBUTING.md)
89
+ ### Code Contributors
90
+
91
+ This project exists thanks to all the people who contribute code. If you'd like to help, see [our guide to contributing code](CONTRIBUTING.md).
92
+ <a href="https://github.com/KaTeX/KaTeX/graphs/contributors"><img src="https://contributors-svg.opencollective.com/katex/contributors.svg?width=890&button=false" alt="Code contributors" /></a>
93
+
94
+ ### Financial Contributors
95
+
96
+ Become a financial contributor and help us sustain our community.
97
+
98
+ #### Individuals
99
+
100
+ <a href="https://opencollective.com/katex"><img src="https://opencollective.com/katex/individuals.svg?width=890" alt="Contribute on Open Collective"></a>
101
+
102
+ #### Organizations
103
+
104
+ Support this project with your organization. Your logo will show up here with a link to your website.
105
+
106
+ <a href="https://opencollective.com/katex/organization/0/website"><img src="https://opencollective.com/katex/organization/0/avatar.svg" alt="Organization 1"></a>
107
+ <a href="https://opencollective.com/katex/organization/1/website"><img src="https://opencollective.com/katex/organization/1/avatar.svg" alt="Organization 2"></a>
108
+ <a href="https://opencollective.com/katex/organization/2/website"><img src="https://opencollective.com/katex/organization/2/avatar.svg" alt="Organization 3"></a>
109
+ <a href="https://opencollective.com/katex/organization/3/website"><img src="https://opencollective.com/katex/organization/3/avatar.svg" alt="Organization 4"></a>
110
+ <a href="https://opencollective.com/katex/organization/4/website"><img src="https://opencollective.com/katex/organization/4/avatar.svg" alt="Organization 5"></a>
111
+ <a href="https://opencollective.com/katex/organization/5/website"><img src="https://opencollective.com/katex/organization/5/avatar.svg" alt="Organization 6"></a>
112
+ <a href="https://opencollective.com/katex/organization/6/website"><img src="https://opencollective.com/katex/organization/6/avatar.svg" alt="Organization 7"></a>
113
+ <a href="https://opencollective.com/katex/organization/7/website"><img src="https://opencollective.com/katex/organization/7/avatar.svg" alt="Organization 8"></a>
114
+ <a href="https://opencollective.com/katex/organization/8/website"><img src="https://opencollective.com/katex/organization/8/avatar.svg" alt="Organization 9"></a>
115
+ <a href="https://opencollective.com/katex/organization/9/website"><img src="https://opencollective.com/katex/organization/9/avatar.svg" alt="Organization 10"></a>
89
116
 
90
117
  ## License
91
118
 
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jest-environment jsdom
3
+ */
1
4
  import splitAtDelimiters from "../splitAtDelimiters";
2
5
  import renderMathInElement from "../auto-render";
3
6
 
@@ -21,8 +21,8 @@ provided by this extension). Without this CSS, partially selected equations
21
21
  will just get the usual HTML copy/paste behavior.
22
22
 
23
23
  ```html
24
- <link href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/copy-tex.css" rel="stylesheet" type="text/css">
25
- <script src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/copy-tex.min.js" integrity="sha384-Ep9Es0VCjVn9dFeaN2uQxgGcGmG+pfZ4eBaHxUpxXDORrrVACZVOpywyzvFRGbmv" crossorigin="anonymous"></script>
24
+ <link href="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/copy-tex.css" rel="stylesheet" type="text/css">
25
+ <script src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/copy-tex.min.js" integrity="sha384-Ep9Es0VCjVn9dFeaN2uQxgGcGmG+pfZ4eBaHxUpxXDORrrVACZVOpywyzvFRGbmv" crossorigin="anonymous"></script>
26
26
  ```
27
27
 
28
28
  See [index.html](index.html) for an example.
@@ -37,7 +37,7 @@ statement with `require('katex/contrib/copy-tex/katex2tex.js')`.
37
37
 
38
38
  ECMAScript module is also available:
39
39
  ```html
40
- <script type="module" src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/copy-tex.mjs" integrity="sha384-+gSYJ3yzY30+a6FGYJXOx9swmWs5oPKEi1AeCsAxsLexABlUXgHXkOkEZCj0Lz8U" crossorigin="anonymous"></script>
40
+ <script type="module" src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/copy-tex.mjs" integrity="sha384-+gSYJ3yzY30+a6FGYJXOx9swmWs5oPKEi1AeCsAxsLexABlUXgHXkOkEZCj0Lz8U" crossorigin="anonymous"></script>
41
41
  ```
42
42
 
43
43
  ### Known Issues
@@ -11,7 +11,7 @@ included in the page, in addition to KaTeX.
11
11
  Load the extension by adding the following line to your HTML file.
12
12
 
13
13
  ```html
14
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/mathtex-script-type.min.js" integrity="sha384-lfASb0Jhxn21qr4pih+Mx6uK2+JEKTtnpMnsCo+PTmb3n/iSUhox6v7eGkBfi47O" crossorigin="anonymous"></script>
14
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/mathtex-script-type.min.js" integrity="sha384-lfASb0Jhxn21qr4pih+Mx6uK2+JEKTtnpMnsCo+PTmb3n/iSUhox6v7eGkBfi47O" crossorigin="anonymous"></script>
15
15
  ```
16
16
  You can download the script and use it locally, or from a local KaTeX installation instead.
17
17
 
@@ -23,9 +23,9 @@ Then, in the body, we use a `math/tex` script to typeset the equation `x+\sqrt{1
23
23
  <!DOCTYPE html>
24
24
  <html>
25
25
  <head>
26
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
27
- <script src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script>
28
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/mathtex-script-type.min.js" integrity="sha384-lfASb0Jhxn21qr4pih+Mx6uK2+JEKTtnpMnsCo+PTmb3n/iSUhox6v7eGkBfi47O" crossorigin="anonymous"></script>
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.css" integrity="sha384-zTROYFVGOfTw7JV7KUu8udsvW2fx4lWOsCEDqhBreBwlHI4ioVRtmIvEThzJHGET" crossorigin="anonymous">
27
+ <script src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.js" integrity="sha384-GxNFqL3r9uRJQhR+47eDxuPoNE7yLftQM8LcxzgS4HT73tp970WS/wV5p8UzCOmb" crossorigin="anonymous"></script>
28
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/mathtex-script-type.min.js" integrity="sha384-lfASb0Jhxn21qr4pih+Mx6uK2+JEKTtnpMnsCo+PTmb3n/iSUhox6v7eGkBfi47O" crossorigin="anonymous"></script>
29
29
  </head>
30
30
  <body>
31
31
  <script type="math/tex">x+\sqrt{1-x^2}</script>
@@ -35,4 +35,4 @@ Then, in the body, we use a `math/tex` script to typeset the equation `x+\sqrt{1
35
35
 
36
36
  ECMAScript module is also available:
37
37
  ```html
38
- <script type="module" src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/mathtex-script-type.mjs" integrity="sha384-4EJvC5tvqq9XJxXvdD4JutBokuFw/dCe2AB4gZ9sRpwFFXECpL3qT43tmE0PkpVg" crossorigin="anonymous"></script>
38
+ <script type="module" src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/mathtex-script-type.mjs" integrity="sha384-4EJvC5tvqq9XJxXvdD4JutBokuFw/dCe2AB4gZ9sRpwFFXECpL3qT43tmE0PkpVg" crossorigin="anonymous"></script>
@@ -7,7 +7,7 @@ This extension adds to KaTeX the `\ce` and `\pu` functions from the [mhchem](htt
7
7
  This extension isn't part of core KaTeX, so the script should be separately included. Write the following line into the HTML page's `<head>`. Place it *after* the line that calls `katex.js`, and if you make use of the [auto-render](https://katex.org/docs/autorender.html) extension, place it *before* the line that calls `auto-render.js`.
8
8
 
9
9
  ```html
10
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/mhchem.min.js" integrity="sha384-LIgAiYlGSAdpNC9+YDjDPF6JeS/RRIumtNo0CmyQERZ/+g0h9MbuYQwf/5pQ4Y4M" crossorigin="anonymous"></script>
10
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/mhchem.min.js" integrity="sha384-LIgAiYlGSAdpNC9+YDjDPF6JeS/RRIumtNo0CmyQERZ/+g0h9MbuYQwf/5pQ4Y4M" crossorigin="anonymous"></script>
11
11
  ```
12
12
 
13
13
  If you remove the `defer` attribute from this tag, then you must also remove the `defer` attribute from the `<script src="https://../katex.min.js">` tag.
package/dist/README.md CHANGED
@@ -7,6 +7,7 @@
7
7
  [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/katex/badge?style=rounded)](https://www.jsdelivr.com/package/npm/katex)
8
8
  ![katex.min.js size](https://img.badgesize.io/https://unpkg.com/katex/dist/katex.min.js?compression=gzip)
9
9
  [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/KaTeX/KaTeX)
10
+ [![Financial Contributors on Open Collective](https://opencollective.com/katex/all/badge.svg?label=financial+contributors)](https://opencollective.com/katex)
10
11
 
11
12
  KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.
12
13
 
@@ -30,13 +31,13 @@ Try out KaTeX [on the demo page](https://katex.org/#demo)!
30
31
  <!-- KaTeX requires the use of the HTML5 doctype. Without it, KaTeX may not render properly -->
31
32
  <html>
32
33
  <head>
33
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
34
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.css" integrity="sha384-zTROYFVGOfTw7JV7KUu8udsvW2fx4lWOsCEDqhBreBwlHI4ioVRtmIvEThzJHGET" crossorigin="anonymous">
34
35
 
35
36
  <!-- The loading of KaTeX is deferred to speed up page rendering -->
36
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script>
37
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.js" integrity="sha384-GxNFqL3r9uRJQhR+47eDxuPoNE7yLftQM8LcxzgS4HT73tp970WS/wV5p8UzCOmb" crossorigin="anonymous"></script>
37
38
 
38
39
  <!-- To automatically render math in text elements, include the auto-render extension: -->
39
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"
40
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"
40
41
  onload="renderMathInElement(document.body);"></script>
41
42
  </head>
42
43
  ...
@@ -83,9 +84,35 @@ hover text. For other available options, see the
83
84
 
84
85
  Learn more about using KaTeX [on the website](https://katex.org)!
85
86
 
86
- ## Contributing
87
+ ## Contributors
87
88
 
88
- See [CONTRIBUTING.md](CONTRIBUTING.md)
89
+ ### Code Contributors
90
+
91
+ This project exists thanks to all the people who contribute code. If you'd like to help, see [our guide to contributing code](CONTRIBUTING.md).
92
+ <a href="https://github.com/KaTeX/KaTeX/graphs/contributors"><img src="https://contributors-svg.opencollective.com/katex/contributors.svg?width=890&button=false" alt="Code contributors" /></a>
93
+
94
+ ### Financial Contributors
95
+
96
+ Become a financial contributor and help us sustain our community.
97
+
98
+ #### Individuals
99
+
100
+ <a href="https://opencollective.com/katex"><img src="https://opencollective.com/katex/individuals.svg?width=890" alt="Contribute on Open Collective"></a>
101
+
102
+ #### Organizations
103
+
104
+ Support this project with your organization. Your logo will show up here with a link to your website.
105
+
106
+ <a href="https://opencollective.com/katex/organization/0/website"><img src="https://opencollective.com/katex/organization/0/avatar.svg" alt="Organization 1"></a>
107
+ <a href="https://opencollective.com/katex/organization/1/website"><img src="https://opencollective.com/katex/organization/1/avatar.svg" alt="Organization 2"></a>
108
+ <a href="https://opencollective.com/katex/organization/2/website"><img src="https://opencollective.com/katex/organization/2/avatar.svg" alt="Organization 3"></a>
109
+ <a href="https://opencollective.com/katex/organization/3/website"><img src="https://opencollective.com/katex/organization/3/avatar.svg" alt="Organization 4"></a>
110
+ <a href="https://opencollective.com/katex/organization/4/website"><img src="https://opencollective.com/katex/organization/4/avatar.svg" alt="Organization 5"></a>
111
+ <a href="https://opencollective.com/katex/organization/5/website"><img src="https://opencollective.com/katex/organization/5/avatar.svg" alt="Organization 6"></a>
112
+ <a href="https://opencollective.com/katex/organization/6/website"><img src="https://opencollective.com/katex/organization/6/avatar.svg" alt="Organization 7"></a>
113
+ <a href="https://opencollective.com/katex/organization/7/website"><img src="https://opencollective.com/katex/organization/7/avatar.svg" alt="Organization 8"></a>
114
+ <a href="https://opencollective.com/katex/organization/8/website"><img src="https://opencollective.com/katex/organization/8/avatar.svg" alt="Organization 9"></a>
115
+ <a href="https://opencollective.com/katex/organization/9/website"><img src="https://opencollective.com/katex/organization/9/avatar.svg" alt="Organization 10"></a>
89
116
 
90
117
  ## License
91
118
 
@@ -219,4 +219,4 @@ var renderMathInElement = function renderMathInElement(elem, options) {
219
219
  renderElem(elem, optionsCopy);
220
220
  };
221
221
 
222
- export default renderMathInElement;
222
+ export { renderMathInElement as default };
@@ -791,4 +791,4 @@ var renderA11yString = function renderA11yString(text, settings) {
791
791
  return flatten(a11yStrings).join(", ");
792
792
  };
793
793
 
794
- export default renderA11yString;
794
+ export { renderA11yString as default };
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/katex.css CHANGED
@@ -130,7 +130,7 @@
130
130
  border-color: currentColor;
131
131
  }
132
132
  .katex .katex-version::after {
133
- content: "0.13.13";
133
+ content: "0.13.18";
134
134
  }
135
135
  .katex .katex-mathml {
136
136
  /* Accessibility hack to only show to screen readers