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.
- package/CHANGELOG.md +214 -126
- package/README.md +18 -17
- package/cli.js +5 -1
- package/contrib/auto-render/README.md +1 -1
- package/contrib/auto-render/auto-render.js +4 -1
- package/contrib/auto-render/test/auto-render-spec.js +17 -0
- package/contrib/copy-tex/README.md +8 -2
- package/contrib/copy-tex/copy-tex.js +0 -1
- package/contrib/copy-tex/copy-tex.webpack.js +6 -0
- package/contrib/mathtex-script-type/README.md +10 -6
- package/contrib/mhchem/README.md +19 -0
- package/contrib/mhchem/mhchem.js +1695 -0
- package/contrib/mhchem/mhchem.patch +235 -0
- package/dist/README.md +18 -17
- package/dist/contrib/auto-render.js +179 -161
- package/dist/contrib/auto-render.min.js +1 -1
- package/dist/contrib/auto-render.mjs +215 -0
- package/dist/contrib/copy-tex.js +84 -62
- package/dist/contrib/copy-tex.min.css +1 -1
- package/dist/contrib/copy-tex.min.js +1 -1
- package/dist/contrib/copy-tex.mjs +85 -0
- package/dist/contrib/mathtex-script-type.js +17 -14
- package/dist/contrib/mathtex-script-type.mjs +24 -0
- package/dist/contrib/mhchem.js +3241 -0
- package/dist/contrib/mhchem.min.js +1 -0
- package/dist/contrib/mhchem.mjs +3109 -0
- package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/katex.css +24 -9
- package/dist/katex.js +13295 -12413
- package/dist/katex.min.css +1 -1
- package/dist/katex.min.js +1 -1
- package/dist/katex.mjs +13388 -11826
- package/katex.js +1 -2
- package/package.json +60 -48
- package/src/Lexer.js +25 -25
- package/src/MacroExpander.js +0 -1
- package/src/Options.js +11 -75
- package/src/Parser.js +231 -313
- package/src/Settings.js +6 -0
- package/src/buildCommon.js +140 -103
- package/src/buildHTML.js +125 -121
- package/src/buildMathML.js +14 -4
- package/src/buildTree.js +16 -10
- package/src/delimiter.js +4 -3
- package/src/domTree.js +91 -44
- package/src/environments/array.js +120 -7
- package/src/fontMetrics.js +3 -2
- package/src/functions/arrow.js +21 -7
- package/src/functions/color.js +2 -37
- package/src/functions/delimsizing.js +18 -11
- package/src/functions/enclose.js +19 -4
- package/src/functions/environment.js +35 -4
- package/src/functions/font.js +1 -2
- package/src/functions/genfrac.js +35 -20
- package/src/functions/href.js +5 -3
- package/src/functions/includegraphics.js +146 -0
- package/src/functions/mclass.js +1 -0
- package/src/functions/op.js +21 -32
- package/src/functions/operatorname.js +1 -2
- package/src/functions/ordgroup.js +4 -0
- package/src/functions/phantom.js +7 -3
- package/src/functions/rule.js +20 -9
- package/src/functions/sizing.js +2 -4
- package/src/functions/smash.js +5 -2
- package/src/functions/sqrt.js +1 -4
- package/src/functions/styling.js +0 -1
- package/src/functions/supsub.js +6 -2
- package/src/functions/symbolsOp.js +4 -0
- package/src/functions/symbolsSpacing.js +29 -6
- package/src/functions/tag.js +20 -4
- package/src/functions/text.js +6 -4
- package/src/functions/verb.js +16 -4
- package/src/functions.js +2 -0
- package/src/katex.less +35 -12
- package/src/macros.js +161 -36
- package/src/mathMLTree.js +17 -19
- package/src/parseNode.js +27 -1
- package/src/stretchy.js +3 -1
- package/src/svgGeometry.js +1 -1
- package/src/symbols.js +39 -17
- package/src/tree.js +0 -4
- package/src/types.js +4 -3
- package/src/unicodeMake.js +1 -1
- package/src/utils.js +1 -62
- package/src/wide-character.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,87 @@
|
|
|
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
|
-
## [v0.10.
|
|
4
|
+
## [v0.10.2]
|
|
5
5
|
### Added
|
|
6
|
-
-
|
|
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
|
-
-
|
|
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
|
|
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
|
-
-
|
|
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
|
|
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/
|
|
124
|
-
- Added support for `\mathring` [#1125](https://github.com/
|
|
125
|
-
- Added support for unicode angle brackets, single vertical bar, double vertical bar [#1123](https://github.com/
|
|
126
|
-
- Added support for Reaction Arrows [#1078](https://github.com/
|
|
127
|
-
- Added `\nobreakspace` [#1145](https://github.com/
|
|
128
|
-
- Added support for Unicode colon equals ≔ [#1151](https://github.com/
|
|
129
|
-
- Added support for `\underline` in text mode [#1159](https://github.com/
|
|
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/
|
|
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/
|
|
136
|
-
- Fixed handling of Unicode characters ð, Å, å [#1157](https://github.com/
|
|
137
|
-
- Padding over `\sqrt` and Paths for frac-line [#1143](https://github.com/
|
|
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/
|
|
143
|
-
- Added support for more scripts in `\text{}` environments such as Czech, Georgian, Hungarian, Turkish. [#1076](https://github.com/
|
|
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/
|
|
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/
|
|
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/
|
|
152
|
-
- Update fonts and metrics so that accents are positioned correctly [#1094](https://github.com/
|
|
153
|
-
- Non-portable use of String method `.includes`. Fixed [#1093](https://github.com/
|
|
154
|
-
- Use correct spacing with tight styles. See [#1106](https://github.com/
|
|
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/
|
|
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/
|
|
162
|
-
- Added support for bold italic symbols. [#1011](https://github.com/
|
|
163
|
-
- add `\ae`, `\AE`, `\oe`, `\OE`, `\o`, `\O`, `\ss` with unicode support for those characters in text mode. [#1030](https://github.com/
|
|
164
|
-
- Added `\i` and `\j` for text mode. [#1029](https://github.com/
|
|
165
|
-
- Added `buildHTMLTree`. [#1022](https://github.com/
|
|
166
|
-
- Implemented `\TextOrMath`, @secondoftwo. [#1024](https://github.com/
|
|
167
|
-
- Added a 'common issues' section to the `README.md`. [#1034](https://github.com/
|
|
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/
|
|
171
|
-
- Exposing the build tree. [#1017](https://github.com/
|
|
172
|
-
- Changed `\xLongequal` to `\xlongequal`. [#997](https://github.com/
|
|
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/
|
|
176
|
-
- Stacking text commands. [#1009](https://github.com/
|
|
177
|
-
- Fixed `\vec` by replacing the combining font glyph with an SVG. [#1018](https://github.com/
|
|
178
|
-
- Made accents zero width. [#1033](https://github.com/
|
|
179
|
-
- Fixed frac-line. [#1025](https://github.com/
|
|
180
|
-
- Implemented correct macros for `liminf` and `limsup`. Fixed [#111](https://github.com/
|
|
181
|
-
- `\kern` generates right-margin instead of left-margin. Fixed [#995](https://github.com/
|
|
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/
|
|
188
|
-
- Implemented `\mathchoice` command. [#969](https://github.com/
|
|
189
|
-
- Implemented `\href` command. [#923](https://github.com/
|
|
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/
|
|
192
|
-
- Added ng-katex link to README.md. [#959](https://github.com/
|
|
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/
|
|
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/
|
|
201
|
-
- Fixed issue where the {aligned} environment skips the last line if the first column is empty. [#949](https://github.com/
|
|
202
|
-
- Appended `ApplyFunction` to math functions in MathML. [#960](https://github.com/
|
|
203
|
-
- Changed `\undertilde` to `\utilde`. [#948](https://github.com/
|
|
204
|
-
- Changed `frac-line` from border to full span. [#976](https://github.com/
|
|
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/
|
|
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/
|
|
212
|
-
- Ported utils to @flow. [#935](https://github.com/
|
|
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/
|
|
216
|
-
- Prevents disappearing fraction lines. [#931](https://github.com/
|
|
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/
|
|
222
|
-
- Added a maxSize option to limit user-specified sizes. [#803](https://github.com/
|
|
223
|
-
- Added `\smash`, laps, spaces, and phantoms. [#833](https://github.com/
|
|
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/
|
|
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/
|
|
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/
|
|
234
|
-
- Allow sizing commands inside optional groups. [#885](https://github.com/
|
|
235
|
-
- Upgraded `\sqrt` zoom and width. [#890](https://github.com/
|
|
236
|
-
- Refactored defineEnvironment to also accept HTML and MathML builders. [#875](https://github.com/
|
|
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/
|
|
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/
|
|
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/
|
|
247
|
-
- Use mpadded for `\raisebox` MathML. [#876](https://github.com/
|
|
248
|
-
- Array/Matrix environments do not trim newlines. Fixed [#337](https://github.com/
|
|
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/
|
|
251
|
-
- Fixed match-at flow errors. [#847](https://github.com/
|
|
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/
|
|
257
|
-
- Added support for `\not`. [#140](https://github.com/
|
|
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/
|
|
261
|
-
- Support for ```' \` ^ ~ = \u . " \r \H \v``` text-mode accents. See [#802](https://github.com/
|
|
262
|
-
- Modernized font creation. See [#624](https://github.com/
|
|
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/
|
|
266
|
-
- Improve `\sqrt`. [#810](https://github.com/
|
|
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/
|
|
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/
|
|
275
|
-
- Updated package.json to point 'main' at dist/katex.js. [#791](https://github.com/
|
|
276
|
-
- Fixed color support for stretchy, strikethrough, and fbox. [#792](https://github.com/
|
|
277
|
-
- Detect attachEvent() support correctly. See [#771](https://github.com/
|
|
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/
|
|
288
|
-
- Old font command support: `\rm`, `\sf`, `\tt`, `\bf`, `\it`. [#675](https://github.com/
|
|
289
|
-
- Builtin macros, macro arguments, `\overset` and `\underset`. [#605](https://github.com/
|
|
290
|
-
- Added `\iff`, `\implies`, `\impliedby` support. [#697](https://github.com/
|
|
291
|
-
- Support <, >, | and many `\text`... commands in text mode. [#684](https://github.com/
|
|
292
|
-
- Implemented $...$ via styling node. [#637](https://github.com/
|
|
293
|
-
- Added `\jot` lineskip to aligned environment, switch contents to displaystyle, and add gathered. [#725](https://github.com/
|
|
294
|
-
- Support stretchy wide elements. [#670](https://github.com/
|
|
295
|
-
- Set maxFontSize on rules. [#744](https://github.com/
|
|
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/
|
|
300
|
-
-Implemented `\coloneqq`, `\colonequals`, etc. based on mathtools and colonequals. [#727](https://github.com/
|
|
301
|
-
- Added configurable error callback. [#658](https://github.com/
|
|
302
|
-
- Added support for absolute TeX units. [#732](https://github.com/
|
|
303
|
-
- Revert "Remove trailing commas for IE 9 compatibility". [#622](https://github.com/
|
|
304
|
-
- Use utils.deflt for Settings. [#649](https://github.com/
|
|
305
|
-
- Refactored and commented space splicing code. [#699](https://github.com/
|
|
306
|
-
- Vertically center single-character `\mathop`. [#745](https://github.com/
|
|
307
|
-
- Associate font metrics with Options, not Style. [#743](https://github.com/
|
|
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/
|
|
310
|
-
- Use `\displaystyle` within `\over/\underbrace`. [#765](https://github.com/
|
|
311
|
-
- Shrinkwrap vlists in table-like CSS. [#768](https://github.com/
|
|
312
|
-
- Improve rule coding, including for `\sqrt`. [#776](https://github.com/
|
|
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/
|
|
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/
|
|
319
|
-
- Fixed all AMS mathord symbols. [#618](https://github.com/
|
|
320
|
-
- Fixed x'^2 [#636](https://github.com/
|
|
321
|
-
- Fixed font typo math -> main. [#678](https://github.com/
|
|
322
|
-
- Fixed spaces before `\middle`. [#689](https://github.com/
|
|
323
|
-
- Fixed [#711](https://github.com/
|
|
324
|
-
- Fixed interaction between styles and sizes. [#719](https://github.com/
|
|
325
|
-
- Correct handling of unbraced kerns followed by spaces. [#751](https://github.com/
|
|
326
|
-
- Corrected computation of TeX sizes. [#755](https://github.com/
|
|
327
|
-
- Solved Safari rendering issues with font-size overrides. [#780](https://github.com/
|
|
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://
|
|
1
|
+
# [<img src="https://katex.org/img/katex-logo-black.svg" width="130" alt="KaTeX">](https://katex.org/)
|
|
2
2
|
[](https://www.npmjs.com/package/katex)
|
|
3
|
-
[](https://circleci.com/gh/KaTeX/KaTeX)
|
|
4
|
+
[](https://codecov.io/gh/KaTeX/KaTeX)
|
|
5
|
+
[](https://gitter.im/KaTeX/KaTeX?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
6
|
+
[](https://greenkeeper.io/)
|
|
6
7
|
[](https://www.jsdelivr.com/package/npm/katex)
|
|
7
|
-

|
|
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:** KaTeX
|
|
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://
|
|
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://
|
|
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.
|
|
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.
|
|
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.
|
|
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/
|
|
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://
|
|
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://
|
|
77
|
-
[options documentation](https://
|
|
78
|
-
[handling errors documentation](https://
|
|
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://
|
|
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
|
-
|
|
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://
|
|
7
|
+
See [Auto-render extension documentation](https://katex.org/docs/autorender.html)
|
|
8
8
|
for more information.
|