katex 0.10.0-rc → 0.10.2

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 (144) hide show
  1. package/CHANGELOG.md +214 -126
  2. package/README.md +18 -17
  3. package/cli.js +5 -1
  4. package/contrib/auto-render/README.md +1 -1
  5. package/contrib/auto-render/auto-render.js +4 -1
  6. package/contrib/auto-render/test/auto-render-spec.js +17 -0
  7. package/contrib/copy-tex/README.md +8 -2
  8. package/contrib/copy-tex/copy-tex.js +0 -1
  9. package/contrib/copy-tex/copy-tex.webpack.js +6 -0
  10. package/contrib/mathtex-script-type/README.md +10 -6
  11. package/contrib/mhchem/README.md +19 -0
  12. package/contrib/mhchem/mhchem.js +1695 -0
  13. package/contrib/mhchem/mhchem.patch +235 -0
  14. package/dist/README.md +18 -17
  15. package/dist/contrib/auto-render.js +179 -161
  16. package/dist/contrib/auto-render.min.js +1 -1
  17. package/dist/contrib/auto-render.mjs +215 -0
  18. package/dist/contrib/copy-tex.js +84 -62
  19. package/dist/contrib/copy-tex.min.css +1 -1
  20. package/dist/contrib/copy-tex.min.js +1 -1
  21. package/dist/contrib/copy-tex.mjs +85 -0
  22. package/dist/contrib/mathtex-script-type.js +17 -14
  23. package/dist/contrib/mathtex-script-type.mjs +24 -0
  24. package/dist/contrib/mhchem.js +3241 -0
  25. package/dist/contrib/mhchem.min.js +1 -0
  26. package/dist/contrib/mhchem.mjs +3109 -0
  27. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  28. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  29. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  30. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  31. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  32. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  33. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  34. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  35. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  36. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  37. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  38. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  39. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  40. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  41. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  42. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  43. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  44. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  45. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  46. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  47. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  48. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  49. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  50. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  51. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  52. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  53. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  54. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  55. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  56. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  57. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  58. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  59. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  60. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  61. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  62. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  63. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  64. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  65. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  66. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  67. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  68. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  69. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  70. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  71. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  72. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  73. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  74. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  75. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  76. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  77. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  78. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  79. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  80. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  81. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  82. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  83. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  84. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  85. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  86. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  87. package/dist/katex.css +24 -9
  88. package/dist/katex.js +13295 -12413
  89. package/dist/katex.min.css +1 -1
  90. package/dist/katex.min.js +1 -1
  91. package/dist/katex.mjs +13388 -11826
  92. package/katex.js +1 -2
  93. package/package.json +60 -48
  94. package/src/Lexer.js +25 -25
  95. package/src/MacroExpander.js +0 -1
  96. package/src/Options.js +11 -75
  97. package/src/Parser.js +231 -313
  98. package/src/Settings.js +6 -0
  99. package/src/buildCommon.js +140 -103
  100. package/src/buildHTML.js +125 -121
  101. package/src/buildMathML.js +14 -4
  102. package/src/buildTree.js +16 -10
  103. package/src/delimiter.js +4 -3
  104. package/src/domTree.js +91 -44
  105. package/src/environments/array.js +120 -7
  106. package/src/fontMetrics.js +3 -2
  107. package/src/functions/arrow.js +21 -7
  108. package/src/functions/color.js +2 -37
  109. package/src/functions/delimsizing.js +18 -11
  110. package/src/functions/enclose.js +19 -4
  111. package/src/functions/environment.js +35 -4
  112. package/src/functions/font.js +1 -2
  113. package/src/functions/genfrac.js +35 -20
  114. package/src/functions/href.js +5 -3
  115. package/src/functions/includegraphics.js +146 -0
  116. package/src/functions/mclass.js +1 -0
  117. package/src/functions/op.js +21 -32
  118. package/src/functions/operatorname.js +1 -2
  119. package/src/functions/ordgroup.js +4 -0
  120. package/src/functions/phantom.js +7 -3
  121. package/src/functions/rule.js +20 -9
  122. package/src/functions/sizing.js +2 -4
  123. package/src/functions/smash.js +5 -2
  124. package/src/functions/sqrt.js +1 -4
  125. package/src/functions/styling.js +0 -1
  126. package/src/functions/supsub.js +6 -2
  127. package/src/functions/symbolsOp.js +4 -0
  128. package/src/functions/symbolsSpacing.js +29 -6
  129. package/src/functions/tag.js +20 -4
  130. package/src/functions/text.js +6 -4
  131. package/src/functions/verb.js +16 -4
  132. package/src/functions.js +2 -0
  133. package/src/katex.less +35 -12
  134. package/src/macros.js +161 -36
  135. package/src/mathMLTree.js +17 -19
  136. package/src/parseNode.js +27 -1
  137. package/src/stretchy.js +3 -1
  138. package/src/svgGeometry.js +1 -1
  139. package/src/symbols.js +39 -17
  140. package/src/tree.js +0 -4
  141. package/src/types.js +4 -3
  142. package/src/unicodeMake.js +1 -1
  143. package/src/utils.js +1 -62
  144. package/src/wide-character.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,11 +1,87 @@
1
- # Change Log
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
- ## [v0.10.0] - RC
4
+ ## [v0.10.2]
5
5
  ### Added
6
- - Unicode: °, delimiters, 1D400-1D7FF, \ll, \lll, ≘≙≚≛≝≞≟, Unicode Mathematical Alphanumeric Symbols, ⟂ ¬ ⊨ ‼ ∌ ≲ ⩽ ⪅ ≶ ⋚ ⪋, corner (#1203, #1207, #1260, #1273, #1274, #1232, #1377, #1389, #1459)
6
+ - Approximate font metrics only when metrics don't exist (#1898)
7
+ - Add KaTeX version to stylesheet and troubleshooting guide (#1893)
8
+ - Add symbol double square brackets (#1947, #1954)
9
+ - Support double-square curly braces (#1953)
10
+
11
+ ### Changed
12
+ - Upgrade minimum development Node version to v8 (#1861)
13
+ - Disable @babel/env debug (#1874)
14
+ - Add issue templates (#1862)
15
+ - Added 'katex-element' (#1905)
16
+ - Fix Users' logo and url (#1896)
17
+ - Load fonts before running screenshotter (#1891)
18
+ - Add Browserstack logo (#1879)
19
+ - Added Android library (#1943)
20
+ - Move custom colors used by Khan into macros.js (#1933)
21
+ - Test for duplicate symbols/macros (#1955)
22
+ - Include extensions mhchem & copy-tex in home-page (#1932)
23
+
24
+ ### Fixed
25
+ - Fix \Rho (#1870)
26
+ - Fix nested \dfrac (#1825)
27
+ - Improve MathML accents (#1877)
28
+ - Improve MathML for \overset, \stackrel, and \underset (#1886)
29
+ - Fix \not (U+E020) RBearing (width) (#1878)
30
+ - Fix ApplyFunction character (#1890)
31
+ - Improve MathML for \limits (#1897)
32
+ - Improve MathML for \hphantom and \vphantom (#1883)
33
+ - Improve MathML for \coloneqq, \dblcolon, \eqcolon, and \eqqcolon (#1889)
34
+ - Improve MathML for \brace (#1884)
35
+ - Fix \middle spacing (#1906)
36
+ - Get a tall \middle\vert from MathML (#1911)
37
+ - Improve more coloneq (#1902)
38
+ - Make \smallint small in \displaystyle (#1907)
39
+ - Improve MathML for characters in Unicode private use area (#1908)
40
+ - Improve MathML for extensible arrows (#1901)
41
+ - Improve MathML for \rule (#1912)
42
+ - Improve MathML for fractions (#1882)
43
+ - Improve MathML for \tag (#1915)
44
+ - Improve MathML for \colorbox and \fcolorbox (#1914)
45
+ - Improve MathML for environments (#1910)
46
+ - Improve MathML for \genfrac barline (#1925)
47
+ - Support \textup and \textmd (#1921)
48
+ - Improve MathML for \not (#1923)
49
+ - Improve MathML for \Bbbk (#1930)
50
+ - Prevent inadvertent tall delims (#1948)
51
+
52
+ ### Removed
53
+ - Re-added code for \includegraphics but disabled the function until trust settings is merged (#1951)
54
+
55
+ ## [v0.10.1]
56
+ ### Added
57
+ - ECMAScript module for contrib (#1624)
58
+ - mhchem extension (#1436)
59
+ - auto-render: optional pre-process callback (#1784)
60
+ - \argmax and \argmin (#1820)
61
+ - \textbackslash and \textasciicircum (#1839)
62
+ - leqno and fleqn support (#1814)
63
+
64
+ ### Changed
65
+ - Include only necessary fonts for target environment specified by Browserslist (#1674)
66
+
67
+ ### Fixed
68
+ - Support blackboard bold in text mode (#1757)
69
+ - Fix spacings in semisimple groups (#1706)
70
+ - Fix parsing comments (#1789)
71
+ - Fix \\ and \newline after operator (#1796)
72
+ - Fix \hphantom width (#1809)
73
+ - Remove double encoding in MathML (#1813)
74
+ - Fix Unicode bigcup (#1836)
75
+ - Fix \genfrac w/ empty delimiter arguments (#1816)
76
+ - \fbox inherits default color (#1847)
77
+ - Fix \not and \neq on Chrome 72 (#1852)
78
+
79
+
80
+ ## [v0.10.0]
81
+ ### Added
82
+ - Unicode: °, delimiters, 1D400-1D7FF, \ll, \lll, ≘≙≚≛≝≞≟, Unicode Mathematical Alphanumeric Symbols, ⟂ ¬ ⊨ ‼ ∌ ≲ ⩽ ⪅ ≶ ⋚ ⪋, corner, ⟦⟧ (#1203, #1207, #1260, #1273, #1274, #1232, #1377, #1389, #1459, #1750)
7
83
  - \yen support on text mode (#1208)
8
- - \( (#1213)
84
+ - `\(` (#1213)
9
85
  - Add defineSymbol to the main katex object (#1263)
10
86
  - Capital Greek letters (#1283, #1285)
11
87
  - Add version to katex object (#1279, #1475)
@@ -13,7 +89,7 @@ All notable changes to this project will be documented in this file. This CHANGE
13
89
  - Tilde \textasciitilde (#1286)
14
90
  - Line breaks for inline formulas (#1287)
15
91
  - \hline (#1306)
16
- - Top-level \newline and \\ in inline math (#1298)
92
+ - Top-level \newline and `\\` in inline math (#1298)
17
93
  - Strict mode, unicode text in math mode (#1117, #1278)
18
94
  - Strict setting for \newline display-mode behavior (#1314)
19
95
  - Allow all Unicode symbols in nonstrict mode (#1217)
@@ -31,39 +107,48 @@ All notable changes to this project will be documented in this file. This CHANGE
31
107
  - Remove `match-at` dependency, use RegExp for lexer (#1447)
32
108
  - \brace and \brack (#1453)
33
109
  - Allow only allowed protocols in \href (#1440)
110
+ - **BREAKING CHANGE:** Only "http", "https", "mailto", and relative URLs are allowed in \href and \url by default.
34
111
  - \genfrac and \above (#1455, #1458)
35
112
  - \char character escaping and nicer MathML via \html@mathml (#1454)
36
113
  - \@binrel (#1487)
37
114
  - \pmb (#1418)
38
- - KaTeX website & documentation (#1484, #1515, #1518, #1514, #1526, #1516, #1519, #1527, #1564, #1566, #1584)
115
+ - KaTeX website & documentation (#1484, #1515, #1518, #1514, #1526, #1516, #1519, #1527, #1564, #1566, #1584, #1571, #1642, #1680, #1683, #1688, #1631, #1727)
39
116
  - Improve supported functions documentation (#1511, #1517, #1532, #1533, #1576, #1556, #1580, #1602)
40
117
  - Alpha sorted function support page (#1536)
41
118
  - MediaWiki (texvc) (#1558)
42
119
  - Add ignore option for class names in auto-render (#1555)
43
120
  - ScrollSpy for table of contents in the documentation (#1557, #1567, #1568)
44
- - Build ECMAScript modules (#1479, #1622)
121
+ - Build ECMAScript modules (#1479, #1622, #1653)
45
122
  - Enable environment variable USE_TTF to disable bundling TTF fonts (#1600)
46
123
  - List of KaTeX users (#1569, #1579)
124
+ - Browserslist (#1662)
125
+ - 6-digit color without # (#1690)
126
+ - \mathnormal (#1700)
127
+ - \lparen and \rparen (#1741)
128
+ - `\>` (#1752)
47
129
 
48
130
  ### Changed
49
- - Port to @flow: delimiter, spacingData, unicodeSymbols, buildHTML, buildMathML, parseNode, defineFunction (#1177, #1195, #1206, #1239, #1247, #1276, #1312, #1324, #1361, #1373, #1393, #1386, #1387, #1408, #1478, #1486, #1534, #1541, #1542, #1551, #1552, #1554, #1559, #1606, #1609, #1612, #1637)
131
+ - Port to @flow: delimiter, spacingData, unicodeSymbols, buildHTML, buildMathML, parseNode, defineFunction, CssStyle (#1177, #1195, #1206, #1239, #1247, #1276, #1312, #1324, #1361, #1373, #1393, #1386, #1387, #1408, #1478, #1486, #1534, #1541, #1542, #1551, #1552, #1554, #1559, #1606, #1609, #1612, #1637, #1684)
50
132
  - Online screenshot diff/generation using CircleCI (#1187)
51
133
  - Add display/displayMode toggle on test page (#1193)
52
134
  - Change CDN links (#1243)
53
135
  - Changelog for KaTeX (#1322)
54
136
  - Move test helpers into common modules (#1318)
55
137
  - Move function handlers to functions/ (#1323, #1325, #1328, #1329, #1331, #1327, #1334, #1339, #1349, #1359, #1332, #1335)
56
- - Add regenerate option to the screenshotter (#1220)
138
+ - Improve screenshotter (#1220, #1644, #1643)
57
139
  - Upgrade to webpack 4 (#1337, #1435)
58
140
  - Automatic submodule updating via husky tool (#1391)
59
141
  - Refactor test helpers (#1336)
60
142
  - Change build directory to `dist` and cleanup NPM scripts (#1500, #1610)
61
143
  - Switch from nomnom to commander (#1496)
62
- - Add test job to CircleCI (#1235)
144
+ - Add test job to CircleCI (#1235, #1658)
63
145
  - Switch npm to Yarn (#1522, #1528)
64
- - Improve release script & enable versioning documentation (#1521, #1603)
146
+ - Improve release script & enable versioning documentation (#1521, #1603, #1660, #1665)
65
147
  - Enable stylelint-config-standard, lint CSS files (#1575)
66
148
  - Rename Screenshotter -> screenshotter (#1573)
149
+ - Refactor buildCommon (#1633, #1640)
150
+ - Upgrade to Babel 7 (#1595)
151
+ - Refactor Parser (#1711, #1723)
67
152
 
68
153
  ### Fixed
69
154
  - Fix nested math mode in non-default text mode (#1111)
@@ -87,7 +172,7 @@ All notable changes to this project will be documented in this file. This CHANGE
87
172
  - Fix vertical alignment of \underbrace (#1304)
88
173
  - Use one strut instead of two (#1307)
89
174
  - Fix MacroExpander space handling (#1314)
90
- - Cleanup MathML <mrow>, <mtext>, <mn> (#1338)
175
+ - Cleanup MathML `<mrow>`, `<mtext>`, `<mn>` (#1338)
91
176
  - Fix lap vertical alignment. (#1162)
92
177
  - Fix nested \tfrac (#1370)
93
178
  - Fix \coloneq etc (#1372)
@@ -116,165 +201,168 @@ All notable changes to this project will be documented in this file. This CHANGE
116
201
  - Fix \fbox (#1550)
117
202
  - Fix \Large roots (#1485)
118
203
  - index.html: replace font, make responsive, improve demo (#1547, #1577, #1615, #1601)
204
+ - Remove duplicate defineFunction invocation for \mathop (#1701)
205
+ - Fix tag positioning to live within katex-html parent (#1721)
206
+ - Fix \mathit font and italic correction (#1700)
119
207
 
120
208
 
121
209
  ## [v0.9.0] - 2018-02-18
122
210
  ### Added
123
- - Italic Greek capital letters [#1118](https://github.com/Khan/KaTeX/pull/1103)
124
- - Added support for `\mathring` [#1125](https://github.com/Khan/KaTeX/pull/1125)
125
- - Added support for unicode angle brackets, single vertical bar, double vertical bar [#1123](https://github.com/Khan/KaTeX/pull/1123)
126
- - Added support for Reaction Arrows [#1078](https://github.com/Khan/KaTeX/pull/1078)
127
- - Added `\nobreakspace` [#1145](https://github.com/Khan/KaTeX/pull/1145)
128
- - Added support for Unicode colon equals ≔ [#1151](https://github.com/Khan/KaTeX/pull/1151)
129
- - Added support for `\underline` in text mode [#1159](https://github.com/Khan/KaTeX/pull/1159)
211
+ - Italic Greek capital letters [#1118](https://github.com/KaTeX/KaTeX/pull/1103)
212
+ - Added support for `\mathring` [#1125](https://github.com/KaTeX/KaTeX/pull/1125)
213
+ - Added support for unicode angle brackets, single vertical bar, double vertical bar [#1123](https://github.com/KaTeX/KaTeX/pull/1123)
214
+ - Added support for Reaction Arrows [#1078](https://github.com/KaTeX/KaTeX/pull/1078)
215
+ - Added `\nobreakspace` [#1145](https://github.com/KaTeX/KaTeX/pull/1145)
216
+ - Added support for Unicode colon equals ≔ [#1151](https://github.com/KaTeX/KaTeX/pull/1151)
217
+ - Added support for `\underline` in text mode [#1159](https://github.com/KaTeX/KaTeX/pull/1159)
130
218
 
131
219
  ### Changed
132
- - Enable spacing functions in text mode [#1139](https://github.com/Khan/KaTeX/pull/1139)
220
+ - Enable spacing functions in text mode [#1139](https://github.com/KaTeX/KaTeX/pull/1139)
133
221
 
134
222
  ### Fixed
135
- - Improved JS spacing [#1103](https://github.com/Khan/KaTeX/pull/1103)
136
- - Fixed handling of Unicode characters ð, Å, å [#1157](https://github.com/Khan/KaTeX/pull/1157)
137
- - Padding over `\sqrt` and Paths for frac-line [#1143](https://github.com/Khan/KaTeX/pull/1143)
223
+ - Improved JS spacing [#1103](https://github.com/KaTeX/KaTeX/pull/1103)
224
+ - Fixed handling of Unicode characters ð, Å, å [#1157](https://github.com/KaTeX/KaTeX/pull/1157)
225
+ - Padding over `\sqrt` and Paths for frac-line [#1143](https://github.com/KaTeX/KaTeX/pull/1143)
138
226
 
139
227
 
140
228
  ## [v0.9.0-beta1] - 2018-01-28
141
229
  ### Added
142
- - Added support for `\aa`, `\AA`, `\lq`, `\rq`, `\lbrack`, `\rbrack` [#1069](https://github.com/Khan/KaTeX/pull/1069)
143
- - Added support for more scripts in `\text{}` environments such as Czech, Georgian, Hungarian, Turkish. [#1076](https://github.com/Khan/KaTeX/pull/1076)
230
+ - Added support for `\aa`, `\AA`, `\lq`, `\rq`, `\lbrack`, `\rbrack` [#1069](https://github.com/KaTeX/KaTeX/pull/1069)
231
+ - Added support for more scripts in `\text{}` environments such as Czech, Georgian, Hungarian, Turkish. [#1076](https://github.com/KaTeX/KaTeX/pull/1076)
144
232
  - add Main-BoldItalic font to allow nesting of `\textit` and `\textbf`
145
- - Added `\S` and `\P` [#1110](https://github.com/Khan/KaTeX/pull/1110)
233
+ - Added `\S` and `\P` [#1110](https://github.com/KaTeX/KaTeX/pull/1110)
146
234
 
147
235
  ### Changed
148
- - Remove symlink to support devs using Windows [#1090](https://github.com/Khan/KaTeX/pull/1090)
236
+ - Remove symlink to support devs using Windows [#1090](https://github.com/KaTeX/KaTeX/pull/1090)
149
237
 
150
238
  ### Fixed
151
- - Do not inherit SVG style properties from the environment. [#1089](https://github.com/Khan/KaTeX/pull/1089)
152
- - Update fonts and metrics so that accents are positioned correctly [#1094](https://github.com/Khan/KaTeX/pull/1094)
153
- - Non-portable use of String method `.includes`. Fixed [#1093](https://github.com/Khan/KaTeX/issues/1093)
154
- - Use correct spacing with tight styles. See [#1106](https://github.com/Khan/KaTeX/pull/1106) for more details.
239
+ - Do not inherit SVG style properties from the environment. [#1089](https://github.com/KaTeX/KaTeX/pull/1089)
240
+ - Update fonts and metrics so that accents are positioned correctly [#1094](https://github.com/KaTeX/KaTeX/pull/1094)
241
+ - Non-portable use of String method `.includes`. Fixed [#1093](https://github.com/KaTeX/KaTeX/issues/1093)
242
+ - Use correct spacing with tight styles. See [#1106](https://github.com/KaTeX/KaTeX/pull/1106) for more details.
155
243
 
156
244
 
157
245
  ## [v0.9.0-beta] - 2018-01-14
158
246
  ### Added
159
- - `\kern` fixed and support `\hskip`, `\TeX`, `\LaTeX`, `\KaTeX`. See [#974](https://github.com/Khan/KaTeX/pull/974)
247
+ - `\kern` fixed and support `\hskip`, `\TeX`, `\LaTeX`, `\KaTeX`. See [#974](https://github.com/KaTeX/KaTeX/pull/974)
160
248
  - Supported Unicode middle dot and Unicode accents.
161
- - Added basic support for Indic scripts in addition to CJK. [#1060](https://github.com/Khan/KaTeX/pull/1060)
162
- - Added support for bold italic symbols. [#1011](https://github.com/Khan/KaTeX/pull/1011)
163
- - add `\ae`, `\AE`, `\oe`, `\OE`, `\o`, `\O`, `\ss` with unicode support for those characters in text mode. [#1030](https://github.com/Khan/KaTeX/pull/1030)
164
- - Added `\i` and `\j` for text mode. [#1029](https://github.com/Khan/KaTeX/pull/1029)
165
- - Added `buildHTMLTree`. [#1022](https://github.com/Khan/KaTeX/pull/1022)
166
- - Implemented `\TextOrMath`, @secondoftwo. [#1024](https://github.com/Khan/KaTeX/pull/1024)
167
- - Added a 'common issues' section to the `README.md`. [#1034](https://github.com/Khan/KaTeX/pull/1034)
249
+ - Added basic support for Indic scripts in addition to CJK. [#1060](https://github.com/KaTeX/KaTeX/pull/1060)
250
+ - Added support for bold italic symbols. [#1011](https://github.com/KaTeX/KaTeX/pull/1011)
251
+ - add `\ae`, `\AE`, `\oe`, `\OE`, `\o`, `\O`, `\ss` with unicode support for those characters in text mode. [#1030](https://github.com/KaTeX/KaTeX/pull/1030)
252
+ - Added `\i` and `\j` for text mode. [#1029](https://github.com/KaTeX/KaTeX/pull/1029)
253
+ - Added `buildHTMLTree`. [#1022](https://github.com/KaTeX/KaTeX/pull/1022)
254
+ - Implemented `\TextOrMath`, @secondoftwo. [#1024](https://github.com/KaTeX/KaTeX/pull/1024)
255
+ - Added a 'common issues' section to the `README.md`. [#1034](https://github.com/KaTeX/KaTeX/pull/1034)
168
256
 
169
257
  ### Changed
170
- - Made a more working example in README.md. Fixed [#1049](https://github.com/Khan/KaTeX/issues/1049) PR is [#1050](https://github.com/Khan/KaTeX/pull/1050)
171
- - Exposing the build tree. [#1017](https://github.com/Khan/KaTeX/pull/1017)
172
- - Changed `\xLongequal` to `\xlongequal`. [#997](https://github.com/Khan/KaTeX/pull/997)
258
+ - Made a more working example in README.md. Fixed [#1049](https://github.com/KaTeX/KaTeX/issues/1049) PR is [#1050](https://github.com/KaTeX/KaTeX/pull/1050)
259
+ - Exposing the build tree. [#1017](https://github.com/KaTeX/KaTeX/pull/1017)
260
+ - Changed `\xLongequal` to `\xlongequal`. [#997](https://github.com/KaTeX/KaTeX/pull/997)
173
261
 
174
262
  ### Fixed
175
- - Avoid negative space in `\bmod`. [#984](https://github.com/Khan/KaTeX/pull/984)
176
- - Stacking text commands. [#1009](https://github.com/Khan/KaTeX/pull/1009)
177
- - Fixed `\vec` by replacing the combining font glyph with an SVG. [#1018](https://github.com/Khan/KaTeX/pull/1018)
178
- - Made accents zero width. [#1033](https://github.com/Khan/KaTeX/pull/1033)
179
- - Fixed frac-line. [#1025](https://github.com/Khan/KaTeX/pull/1025)
180
- - Implemented correct macros for `liminf` and `limsup`. Fixed [#111](https://github.com/Khan/KaTeX/issues/111)
181
- - `\kern` generates right-margin instead of left-margin. Fixed [#995](https://github.com/Khan/KaTeX/issues/995)
263
+ - Avoid negative space in `\bmod`. [#984](https://github.com/KaTeX/KaTeX/pull/984)
264
+ - Stacking text commands. [#1009](https://github.com/KaTeX/KaTeX/pull/1009)
265
+ - Fixed `\vec` by replacing the combining font glyph with an SVG. [#1018](https://github.com/KaTeX/KaTeX/pull/1018)
266
+ - Made accents zero width. [#1033](https://github.com/KaTeX/KaTeX/pull/1033)
267
+ - Fixed frac-line. [#1025](https://github.com/KaTeX/KaTeX/pull/1025)
268
+ - Implemented correct macros for `liminf` and `limsup`. Fixed [#111](https://github.com/KaTeX/KaTeX/issues/111)
269
+ - `\kern` generates right-margin instead of left-margin. Fixed [#995](https://github.com/KaTeX/KaTeX/issues/995)
182
270
 
183
271
 
184
272
  ## [v0.9.0-alpha2] - 2017-11-26
185
273
  ### Added
186
274
  - Added Unicode Relations and Unicode Symbol support. Supports Unicode ∴, ∵, `\mid`, Arrows, Big Operators, Binary Operators, Negated Relations.
187
- - Implemented the `alignedat` environment for flexible math spacing. [#930](https://github.com/Khan/KaTeX/pull/930)
188
- - Implemented `\mathchoice` command. [#969](https://github.com/Khan/KaTeX/pull/969)
189
- - Implemented `\href` command. [#923](https://github.com/Khan/KaTeX/pull/923)
275
+ - Implemented the `alignedat` environment for flexible math spacing. [#930](https://github.com/KaTeX/KaTeX/pull/930)
276
+ - Implemented `\mathchoice` command. [#969](https://github.com/KaTeX/KaTeX/pull/969)
277
+ - Implemented `\href` command. [#923](https://github.com/KaTeX/KaTeX/pull/923)
190
278
  - `\hspace*`, `\@ifstar`, `\@ifnextchar`, `\@firstoftwo` (#975)
191
- - Added `\notni` character `∌`. [#710](https://github.com/Khan/KaTeX/pull/710)
192
- - Added ng-katex link to README.md. [#959](https://github.com/Khan/KaTeX/pull/959)
279
+ - Added `\notni` character `∌`. [#710](https://github.com/KaTeX/KaTeX/pull/710)
280
+ - Added ng-katex link to README.md. [#959](https://github.com/KaTeX/KaTeX/pull/959)
193
281
 
194
282
  ### Changed
195
- - Single-character macros like active characters. [#973](https://github.com/Khan/KaTeX/pull/973)
283
+ - Single-character macros like active characters. [#973](https://github.com/KaTeX/KaTeX/pull/973)
196
284
  - Re `@flow`:
197
285
  - Port buildTree, katex, mathMLTree, parseTree, stretchy to @flow.
198
286
 
199
287
  ### Fixed
200
- - Fixed the spacing between columns in the {aligned} environment. [#942](https://github.com/Khan/KaTeX/pull/942)
201
- - Fixed issue where the {aligned} environment skips the last line if the first column is empty. [#949](https://github.com/Khan/KaTeX/pull/949)
202
- - Appended `ApplyFunction` to math functions in MathML. [#960](https://github.com/Khan/KaTeX/pull/960)
203
- - Changed `\undertilde` to `\utilde`. [#948](https://github.com/Khan/KaTeX/pull/948)
204
- - Changed `frac-line` from border to full span. [#976](https://github.com/Khan/KaTeX/pull/976)
288
+ - Fixed the spacing between columns in the {aligned} environment. [#942](https://github.com/KaTeX/KaTeX/pull/942)
289
+ - Fixed issue where the {aligned} environment skips the last line if the first column is empty. [#949](https://github.com/KaTeX/KaTeX/pull/949)
290
+ - Appended `ApplyFunction` to math functions in MathML. [#960](https://github.com/KaTeX/KaTeX/pull/960)
291
+ - Changed `\undertilde` to `\utilde`. [#948](https://github.com/KaTeX/KaTeX/pull/948)
292
+ - Changed `frac-line` from border to full span. [#976](https://github.com/KaTeX/KaTeX/pull/976)
205
293
 
206
294
 
207
295
  ## [v0.9.0-alpha1] - 2017-10-15
208
296
  ### Changed
209
- - Edited link to Function Support page. [#922](https://github.com/Khan/KaTeX/pull/922)
297
+ - Edited link to Function Support page. [#922](https://github.com/KaTeX/KaTeX/pull/922)
210
298
  - Re `@flow`:
211
- - Exported svgGeometry to @flow. [#936](https://github.com/Khan/KaTeX/pull/936)
212
- - Ported utils to @flow. [#935](https://github.com/Khan/KaTeX/pull/935)
299
+ - Exported svgGeometry to @flow. [#936](https://github.com/KaTeX/KaTeX/pull/936)
300
+ - Ported utils to @flow. [#935](https://github.com/KaTeX/KaTeX/pull/935)
213
301
 
214
302
  ### Fixed
215
- - Fixed space handling. [#912](https://github.com/Khan/KaTeX/pull/912)
216
- - Prevents disappearing fraction lines. [#931](https://github.com/Khan/KaTeX/pull/931)
303
+ - Fixed space handling. [#912](https://github.com/KaTeX/KaTeX/pull/912)
304
+ - Prevents disappearing fraction lines. [#931](https://github.com/KaTeX/KaTeX/pull/931)
217
305
 
218
306
 
219
307
  ## [v0.9.0-alpha] - 2017-10-05
220
308
  ### Added
221
- - Added MathJax compatibility script. [#680](https://github.com/Khan/KaTeX/pull/680)
222
- - Added a maxSize option to limit user-specified sizes. [#803](https://github.com/Khan/KaTeX/pull/803)
223
- - Added `\smash`, laps, spaces, and phantoms. [#833](https://github.com/Khan/KaTeX/pull/833)
309
+ - Added MathJax compatibility script. [#680](https://github.com/KaTeX/KaTeX/pull/680)
310
+ - Added a maxSize option to limit user-specified sizes. [#803](https://github.com/KaTeX/KaTeX/pull/803)
311
+ - Added `\smash`, laps, spaces, and phantoms. [#833](https://github.com/KaTeX/KaTeX/pull/833)
224
312
  - Support for `\raisebox`, `\operatorname`, `\And`, `\colorbox`, `\fcolorbox` and `\verb`.
225
- - Added support for comments. Fixed [#20](https://github.com/Khan/KaTeX/issues/20)
313
+ - Added support for comments. Fixed [#20](https://github.com/KaTeX/KaTeX/issues/20)
226
314
  - To `@flow`:
227
315
  - fontMetrics, fontMetricsData, Token, Lexer, MacroExpander, Options, ParseError, ParseNode, Settings, Style.
228
316
 
229
317
  ### Removed
230
- - Removed the positions array computed by Parser's parseArguments(). [#864](https://github.com/Khan/KaTeX/pull/864)
318
+ - Removed the positions array computed by Parser's parseArguments(). [#864](https://github.com/KaTeX/KaTeX/pull/864)
231
319
 
232
320
  ### Changed
233
- - Advanced macro support and magic `\dots`. [#794](https://github.com/Khan/KaTeX/pull/794)
234
- - Allow sizing commands inside optional groups. [#885](https://github.com/Khan/KaTeX/pull/885)
235
- - Upgraded `\sqrt` zoom and width. [#890](https://github.com/Khan/KaTeX/pull/890)
236
- - Refactored defineEnvironment to also accept HTML and MathML builders. [#875](https://github.com/Khan/KaTeX/pull/875)
321
+ - Advanced macro support and magic `\dots`. [#794](https://github.com/KaTeX/KaTeX/pull/794)
322
+ - Allow sizing commands inside optional groups. [#885](https://github.com/KaTeX/KaTeX/pull/885)
323
+ - Upgraded `\sqrt` zoom and width. [#890](https://github.com/KaTeX/KaTeX/pull/890)
324
+ - Refactored defineEnvironment to also accept HTML and MathML builders. [#875](https://github.com/KaTeX/KaTeX/pull/875)
237
325
  - For `@flow`:
238
326
  - Ported environments.js, functions.js, symbol.js, unit.js.
239
- - Separated mandatory and optional arguments in parseArguments. [#903](https://github.com/Khan/KaTeX/pull/903)
327
+ - Separated mandatory and optional arguments in parseArguments. [#903](https://github.com/KaTeX/KaTeX/pull/903)
240
328
 
241
329
  ### Breaking Changes
242
- - Require [text]color HTML colors to be well-formed. See [#827](https://github.com/Khan/KaTeX/pull/827)
330
+ - Require [text]color HTML colors to be well-formed. See [#827](https://github.com/KaTeX/KaTeX/pull/827)
243
331
  - `\llap` and `\rlap` now render contents in math mode. Use `\mathllap` (new) and `\mathrlap` (new) if you need the previous behavior.
244
332
 
245
333
  ### Fixed
246
- - Fixed exponential behavior in accent production. [#834](https://github.com/Khan/KaTeX/pull/834)
247
- - Use mpadded for `\raisebox` MathML. [#876](https://github.com/Khan/KaTeX/pull/876)
248
- - Array/Matrix environments do not trim newlines. Fixed [#337](https://github.com/Khan/KaTeX/issues/337). PR is [#479](https://github.com/Khan/KaTeX/pull/479).
334
+ - Fixed exponential behavior in accent production. [#834](https://github.com/KaTeX/KaTeX/pull/834)
335
+ - Use mpadded for `\raisebox` MathML. [#876](https://github.com/KaTeX/KaTeX/pull/876)
336
+ - Array/Matrix environments do not trim newlines. Fixed [#337](https://github.com/KaTeX/KaTeX/issues/337). PR is [#479](https://github.com/KaTeX/KaTeX/pull/479).
249
337
  - For `@flow`:
250
- - Corrected @flow types. Refactor some Parser code for stricter typing. [#896](https://github.com/Khan/KaTeX/pull/896)
251
- - Fixed match-at flow errors. [#847](https://github.com/Khan/KaTeX/pull/847)
338
+ - Corrected @flow types. Refactor some Parser code for stricter typing. [#896](https://github.com/KaTeX/KaTeX/pull/896)
339
+ - Fixed match-at flow errors. [#847](https://github.com/KaTeX/KaTeX/pull/847)
252
340
 
253
341
 
254
342
  ## [v0.8.3] - 2017-08-27
255
343
  ### Added
256
- - Added latin-1 letters as math symbols. See [#796](https://github.com/Khan/KaTeX/pull/796)
257
- - Added support for `\not`. [#140](https://github.com/Khan/KaTeX/pull/140)
344
+ - Added latin-1 letters as math symbols. See [#796](https://github.com/KaTeX/KaTeX/pull/796)
345
+ - Added support for `\not`. [#140](https://github.com/KaTeX/KaTeX/pull/140)
258
346
 
259
347
  ### Changed
260
- - Support CJK full-width punctuation + Unicode dots. See [#814](https://github.com/Khan/KaTeX/pull/814)
261
- - Support for ```' \` ^ ~ = \u . " \r \H \v``` text-mode accents. See [#802](https://github.com/Khan/KaTeX/pull/802)
262
- - Modernized font creation. See [#624](https://github.com/Khan/KaTeX/pull/624)
348
+ - Support CJK full-width punctuation + Unicode dots. See [#814](https://github.com/KaTeX/KaTeX/pull/814)
349
+ - Support for ```' \` ^ ~ = \u . " \r \H \v``` text-mode accents. See [#802](https://github.com/KaTeX/KaTeX/pull/802)
350
+ - Modernized font creation. See [#624](https://github.com/KaTeX/KaTeX/pull/624)
263
351
 
264
352
  ### Fixed
265
- - Use inline SVG for stretchy elements. [#807](https://github.com/Khan/KaTeX/pull/807)
266
- - Improve `\sqrt`. [#810](https://github.com/Khan/KaTeX/issues/810)
353
+ - Use inline SVG for stretchy elements. [#807](https://github.com/KaTeX/KaTeX/pull/807)
354
+ - Improve `\sqrt`. [#810](https://github.com/KaTeX/KaTeX/issues/810)
267
355
 
268
356
 
269
357
  ## [v0.8.2] - 2017-08-17
270
358
  ### Added
271
- - Accepts all existing Greek letters using unicode characters in math mode. See [#410](https://github.com/Khan/KaTeX/pull/410)
359
+ - Accepts all existing Greek letters using unicode characters in math mode. See [#410](https://github.com/KaTeX/KaTeX/pull/410)
272
360
 
273
361
  ### Fixed
274
- - Fixed MathML output for ' and large operators with limits. [#788](https://github.com/Khan/KaTeX/pull/788)
275
- - Updated package.json to point 'main' at dist/katex.js. [#791](https://github.com/Khan/KaTeX/pull/791)
276
- - Fixed color support for stretchy, strikethrough, and fbox. [#792](https://github.com/Khan/KaTeX/pull/792)
277
- - Detect attachEvent() support correctly. See [#771](https://github.com/Khan/KaTeX/issues/771) and [#772](https://github.com/Khan/KaTeX/pull/772) for the issue and PR fix respectively.
362
+ - Fixed MathML output for ' and large operators with limits. [#788](https://github.com/KaTeX/KaTeX/pull/788)
363
+ - Updated package.json to point 'main' at dist/katex.js. [#791](https://github.com/KaTeX/KaTeX/pull/791)
364
+ - Fixed color support for stretchy, strikethrough, and fbox. [#792](https://github.com/KaTeX/KaTeX/pull/792)
365
+ - Detect attachEvent() support correctly. See [#771](https://github.com/KaTeX/KaTeX/issues/771) and [#772](https://github.com/KaTeX/KaTeX/pull/772) for the issue and PR fix respectively.
278
366
 
279
367
  ## [v0.8.1] - 2017-08-11
280
368
  ### Fixed
@@ -284,47 +372,47 @@ All notable changes to this project will be documented in this file. This CHANGE
284
372
 
285
373
  ## [v0.8.0] - 2017-08-11
286
374
  ### Added
287
- - Added some international operators. See [#509](https://github.com/Khan/KaTeX/issues/509)
288
- - Old font command support: `\rm`, `\sf`, `\tt`, `\bf`, `\it`. [#675](https://github.com/Khan/KaTeX/pull/675)
289
- - Builtin macros, macro arguments, `\overset` and `\underset`. [#605](https://github.com/Khan/KaTeX/pull/605)
290
- - Added `\iff`, `\implies`, `\impliedby` support. [#697](https://github.com/Khan/KaTeX/pull/697)
291
- - Support <, >, | and many `\text`... commands in text mode. [#684](https://github.com/Khan/KaTeX/pull/684)
292
- - Implemented $...$ via styling node. [#637](https://github.com/Khan/KaTeX/pull/637)
293
- - Added `\jot` lineskip to aligned environment, switch contents to displaystyle, and add gathered. [#725](https://github.com/Khan/KaTeX/pull/725)
294
- - Support stretchy wide elements. [#670](https://github.com/Khan/KaTeX/pull/670)
295
- - Set maxFontSize on rules. [#744](https://github.com/Khan/KaTeX/pull/744)
375
+ - Added some international operators. See [#509](https://github.com/KaTeX/KaTeX/issues/509)
376
+ - Old font command support: `\rm`, `\sf`, `\tt`, `\bf`, `\it`. [#675](https://github.com/KaTeX/KaTeX/pull/675)
377
+ - Builtin macros, macro arguments, `\overset` and `\underset`. [#605](https://github.com/KaTeX/KaTeX/pull/605)
378
+ - Added `\iff`, `\implies`, `\impliedby` support. [#697](https://github.com/KaTeX/KaTeX/pull/697)
379
+ - Support <, >, | and many `\text`... commands in text mode. [#684](https://github.com/KaTeX/KaTeX/pull/684)
380
+ - Implemented $...$ via styling node. [#637](https://github.com/KaTeX/KaTeX/pull/637)
381
+ - Added `\jot` lineskip to aligned environment, switch contents to displaystyle, and add gathered. [#725](https://github.com/KaTeX/KaTeX/pull/725)
382
+ - Support stretchy wide elements. [#670](https://github.com/KaTeX/KaTeX/pull/670)
383
+ - Set maxFontSize on rules. [#744](https://github.com/KaTeX/KaTeX/pull/744)
296
384
 
297
385
 
298
386
  ### Changes
299
- - Added support for Windows high-contrast mode. Fixed [#716](https://github.com/Khan/KaTeX/issues/716) [#724](https://github.com/Khan/KaTeX/pull/724)
300
- -Implemented `\coloneqq`, `\colonequals`, etc. based on mathtools and colonequals. [#727](https://github.com/Khan/KaTeX/pull/727)
301
- - Added configurable error callback. [#658](https://github.com/Khan/KaTeX/pull/658)
302
- - Added support for absolute TeX units. [#732](https://github.com/Khan/KaTeX/pull/732)
303
- - Revert "Remove trailing commas for IE 9 compatibility". [#622](https://github.com/Khan/KaTeX/pull/622)
304
- - Use utils.deflt for Settings. [#649](https://github.com/Khan/KaTeX/pull/649)
305
- - Refactored and commented space splicing code. [#699](https://github.com/Khan/KaTeX/pull/699)
306
- - Vertically center single-character `\mathop`. [#745](https://github.com/Khan/KaTeX/pull/745)
307
- - Associate font metrics with Options, not Style. [#743](https://github.com/Khan/KaTeX/pull/743)
387
+ - Added support for Windows high-contrast mode. Fixed [#716](https://github.com/KaTeX/KaTeX/issues/716) [#724](https://github.com/KaTeX/KaTeX/pull/724)
388
+ -Implemented `\coloneqq`, `\colonequals`, etc. based on mathtools and colonequals. [#727](https://github.com/KaTeX/KaTeX/pull/727)
389
+ - Added configurable error callback. [#658](https://github.com/KaTeX/KaTeX/pull/658)
390
+ - Added support for absolute TeX units. [#732](https://github.com/KaTeX/KaTeX/pull/732)
391
+ - Revert "Remove trailing commas for IE 9 compatibility". [#622](https://github.com/KaTeX/KaTeX/pull/622)
392
+ - Use utils.deflt for Settings. [#649](https://github.com/KaTeX/KaTeX/pull/649)
393
+ - Refactored and commented space splicing code. [#699](https://github.com/KaTeX/KaTeX/pull/699)
394
+ - Vertically center single-character `\mathop`. [#745](https://github.com/KaTeX/KaTeX/pull/745)
395
+ - Associate font metrics with Options, not Style. [#743](https://github.com/KaTeX/KaTeX/pull/743)
308
396
  - Upgraded the source to use ES6 syntax including classes, import and static properties.
309
- [#679](https://github.com/Khan/KaTeX/pull/679)
310
- - Use `\displaystyle` within `\over/\underbrace`. [#765](https://github.com/Khan/KaTeX/pull/765)
311
- - Shrinkwrap vlists in table-like CSS. [#768](https://github.com/Khan/KaTeX/pull/768)
312
- - Improve rule coding, including for `\sqrt`. [#776](https://github.com/Khan/KaTeX/pull/776)
397
+ [#679](https://github.com/KaTeX/KaTeX/pull/679)
398
+ - Use `\displaystyle` within `\over/\underbrace`. [#765](https://github.com/KaTeX/KaTeX/pull/765)
399
+ - Shrinkwrap vlists in table-like CSS. [#768](https://github.com/KaTeX/KaTeX/pull/768)
400
+ - Improve rule coding, including for `\sqrt`. [#776](https://github.com/KaTeX/KaTeX/pull/776)
313
401
 
314
402
  ### Breaking Changes
315
- - Implicit `\color`, explicitly grouped `\textcolor`. See [#619](https://github.com/Khan/KaTeX/pull/619)
403
+ - Implicit `\color`, explicitly grouped `\textcolor`. See [#619](https://github.com/KaTeX/KaTeX/pull/619)
316
404
 
317
405
  ### Fixed
318
- - Fixed high contrast mode better. [#733](https://github.com/Khan/KaTeX/pull/733)
319
- - Fixed all AMS mathord symbols. [#618](https://github.com/Khan/KaTeX/pull/618)
320
- - Fixed x'^2 [#636](https://github.com/Khan/KaTeX/pull/636)
321
- - Fixed font typo math -> main. [#678](https://github.com/Khan/KaTeX/pull/678)
322
- - Fixed spaces before `\middle`. [#689](https://github.com/Khan/KaTeX/pull/689)
323
- - Fixed [#711](https://github.com/Khan/KaTeX/issues/711) issue with multiple superscripts. [#718](https://github.com/Khan/KaTeX/pull/718)
324
- - Fixed interaction between styles and sizes. [#719](https://github.com/Khan/KaTeX/pull/719)
325
- - Correct handling of unbraced kerns followed by spaces. [#751](https://github.com/Khan/KaTeX/pull/751)
326
- - Corrected computation of TeX sizes. [#755](https://github.com/Khan/KaTeX/pull/755)
327
- - Solved Safari rendering issues with font-size overrides. [#780](https://github.com/Khan/KaTeX/pull/780)
406
+ - Fixed high contrast mode better. [#733](https://github.com/KaTeX/KaTeX/pull/733)
407
+ - Fixed all AMS mathord symbols. [#618](https://github.com/KaTeX/KaTeX/pull/618)
408
+ - Fixed x'^2 [#636](https://github.com/KaTeX/KaTeX/pull/636)
409
+ - Fixed font typo math -> main. [#678](https://github.com/KaTeX/KaTeX/pull/678)
410
+ - Fixed spaces before `\middle`. [#689](https://github.com/KaTeX/KaTeX/pull/689)
411
+ - Fixed [#711](https://github.com/KaTeX/KaTeX/issues/711) issue with multiple superscripts. [#718](https://github.com/KaTeX/KaTeX/pull/718)
412
+ - Fixed interaction between styles and sizes. [#719](https://github.com/KaTeX/KaTeX/pull/719)
413
+ - Correct handling of unbraced kerns followed by spaces. [#751](https://github.com/KaTeX/KaTeX/pull/751)
414
+ - Corrected computation of TeX sizes. [#755](https://github.com/KaTeX/KaTeX/pull/755)
415
+ - Solved Safari rendering issues with font-size overrides. [#780](https://github.com/KaTeX/KaTeX/pull/780)
328
416
 
329
417
 
330
418
  ## [v0.7.1] - 2017-01-21
package/README.md CHANGED
@@ -1,23 +1,24 @@
1
- # [<img src="https://cdn.rawgit.com/Khan/KaTeX/84189cd3adae24d92e766d14eb80d6e54f3c7dca/katex-logo.svg" width="130" alt="KaTeX">](https://khan.github.io/KaTeX/)
1
+ # [<img src="https://katex.org/img/katex-logo-black.svg" width="130" alt="KaTeX">](https://katex.org/)
2
2
  [![npm](https://img.shields.io/npm/v/katex.svg)](https://www.npmjs.com/package/katex)
3
- [![CircleCI](https://circleci.com/gh/Khan/KaTeX.svg?style=shield)](https://circleci.com/gh/Khan/KaTeX)
4
- [![codecov](https://codecov.io/gh/Khan/KaTeX/branch/master/graph/badge.svg)](https://codecov.io/gh/Khan/KaTeX)
5
- [![Join the chat at https://gitter.im/Khan/KaTeX](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Khan/KaTeX?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Greenkeeper badge](https://badges.greenkeeper.io/Khan/KaTeX.svg)](https://greenkeeper.io/)
3
+ [![CircleCI](https://circleci.com/gh/KaTeX/KaTeX.svg?style=shield)](https://circleci.com/gh/KaTeX/KaTeX)
4
+ [![codecov](https://codecov.io/gh/KaTeX/KaTeX/branch/master/graph/badge.svg)](https://codecov.io/gh/KaTeX/KaTeX)
5
+ [![Join the chat at https://gitter.im/KaTeX/KaTeX](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/KaTeX/KaTeX?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
+ [![Greenkeeper badge](https://badges.greenkeeper.io/KaTeX/KaTeX.svg)](https://greenkeeper.io/)
6
7
  [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/katex/badge?style=rounded)](https://www.jsdelivr.com/package/npm/katex)
7
- ![](https://img.badgesize.io/Khan/KaTeX/v0.10.0-rc/dist/katex.min.js?compression=gzip)
8
+ ![](https://img.badgesize.io/KaTeX/KaTeX/v0.10.2/dist/katex.min.js?compression=gzip)
8
9
 
9
10
  KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.
10
11
 
11
12
  * **Fast:** KaTeX renders its math synchronously and doesn't need to reflow the page. See how it compares to a competitor in [this speed test](http://www.intmath.com/cg5/katex-mathjax-comparison.php).
12
- * **Print quality:** KaTeXs layout is based on Donald Knuths TeX, the gold standard for math typesetting.
13
+ * **Print quality:** KaTeX's layout is based on Donald Knuth's TeX, the gold standard for math typesetting.
13
14
  * **Self contained:** KaTeX has no dependencies and can easily be bundled with your website resources.
14
15
  * **Server side rendering:** KaTeX produces the same output regardless of browser or environment, so you can pre-render expressions using Node.js and send them as plain HTML.
15
16
 
16
17
  KaTeX is compatible with all major browsers, including Chrome, Safari, Firefox, Opera, Edge, and IE 9–11.
17
18
 
18
- KaTeX supports much (but not all) of LaTeX and many LaTeX packages. See the [list of supported functions](https://khan.github.io/KaTeX/docs/supported.html).
19
+ KaTeX supports much (but not all) of LaTeX and many LaTeX packages. See the [list of supported functions](https://katex.org/docs/supported.html).
19
20
 
20
- Try out KaTeX [on the demo page](https://khan.github.io/KaTeX/#demo)!
21
+ Try out KaTeX [on the demo page](https://katex.org/#demo)!
21
22
 
22
23
  ## Getting started
23
24
 
@@ -28,22 +29,22 @@ Try out KaTeX [on the demo page](https://khan.github.io/KaTeX/#demo)!
28
29
  <!-- KaTeX requires the use of the HTML5 doctype. Without it, KaTeX may not render properly -->
29
30
  <html>
30
31
  <head>
31
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc/dist/katex.min.css" integrity="sha384-D+9gmBxUQogRLqvARvNLmA9hS2x//eK1FhVb9PiU86gmcrBrJAQT8okdJ4LMp2uv" crossorigin="anonymous">
32
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.css" integrity="sha384-yFRtMMDnQtDRO8rLpMIKrtPCD5jdktao2TV19YiZYWMDkUR5GQZR/NOVTdquEx1j" crossorigin="anonymous">
32
33
 
33
34
  <!-- The loading of KaTeX is deferred to speed up page rendering -->
34
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc/dist/katex.min.js" integrity="sha384-ttOZCNX+557qK00I95MHw9tttcgWn2PjR/bXecuEvENq6nevFtwSSQ6bYEN6AetB" crossorigin="anonymous"></script>
35
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.js" integrity="sha384-9Nhn55MVVN0/4OFx7EE5kpFBPsEMZxKTCnA+4fqDmg12eCTqGi6+BB2LjY8brQxJ" crossorigin="anonymous"></script>
35
36
 
36
37
  <!-- To automatically render math in text elements, include the auto-render extension: -->
37
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc/dist/contrib/auto-render.min.js" integrity="sha384-yACMu8JWxKzSp/C1YV86pzGiQ/l1YUfE8oPuahJQxzehAjEt2GiQuy/BIvl9KyeF" crossorigin="anonymous"
38
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"
38
39
  onload="renderMathInElement(document.body);"></script>
39
40
  </head>
40
41
  ...
41
42
  </html>
42
43
  ```
43
44
 
44
- You can also [download KaTeX](https://github.com/khan/katex/releases) and host it yourself.
45
+ You can also [download KaTeX](https://github.com/KaTeX/KaTeX/releases) and host it yourself.
45
46
 
46
- For details on how to configure auto-render extension, refer to [the documentation](https://khan.github.io/KaTeX/docs/autorender.html).
47
+ For details on how to configure auto-render extension, refer to [the documentation](https://katex.org/docs/autorender.html).
47
48
 
48
49
  ### API
49
50
 
@@ -73,13 +74,13 @@ JavaScript on the client.
73
74
  The examples above use the `throwOnError: false` option, which renders invalid
74
75
  inputs as the TeX source code in red (by default), with the error message as
75
76
  hover text. For other available options, see the
76
- [API documentation](https://khan.github.io/KaTeX/docs/api.html),
77
- [options documentation](https://khan.github.io/KaTeX/docs/options.html), and
78
- [handling errors documentation](https://khan.github.io/KaTeX/docs/error.html).
77
+ [API documentation](https://katex.org/docs/api.html),
78
+ [options documentation](https://katex.org/docs/options.html), and
79
+ [handling errors documentation](https://katex.org/docs/error.html).
79
80
 
80
81
  ## Demo and Documentation
81
82
 
82
- Learn more about using KaTeX [on the website](https://khan.github.io/KaTeX)!
83
+ Learn more about using KaTeX [on the website](https://katex.org)!
83
84
 
84
85
  ## Contributing
85
86
 
package/cli.js CHANGED
@@ -26,6 +26,10 @@ const program = require("commander")
26
26
  "Render math in display mode, which puts the math in display style " +
27
27
  "(so \\int and \\sum are large, for example), and centers the math " +
28
28
  "on the page on its own line.")
29
+ .option("--leqno",
30
+ "Render display math in leqno style (left-justified tags).")
31
+ .option("--fleqn",
32
+ "Render display math flush left.")
29
33
  .option("-t, --no-throw-on-error",
30
34
  "Render errors (in the color given by --error-color) instead of " +
31
35
  "throwing a ParseError exception when encountering an error.")
@@ -44,7 +48,7 @@ const program = require("commander")
44
48
  "If non-zero, all user-specified sizes, e.g. in " +
45
49
  "\\rule{500em}{500em}, will be capped to maxSize ems. " +
46
50
  "Otherwise, elements and spaces can be arbitrarily large",
47
- 0, parseInt)
51
+ Infinity, parseInt)
48
52
  .option("-e, --max-expand <n>",
49
53
  "Limit the number of macro expansions to the specified number, to " +
50
54
  "prevent e.g. infinite macro loops. If set to Infinity, the macro " +
@@ -4,5 +4,5 @@ This is an extension to automatically render all of the math inside of text. It
4
4
  searches all of the text nodes in a given element for the given delimiters, and
5
5
  renders the math in place.
6
6
 
7
- See [Auto-render extension documentation](https://khan.github.io/KaTeX/docs/autorender.html)
7
+ See [Auto-render extension documentation](https://katex.org/docs/autorender.html)
8
8
  for more information.