103 Commits

Author SHA1 Message Date
KaTeX bot
ad03d1e9dc chore(release): 0.16.8 [ci skip]
## [0.16.8](https://github.com/KaTeX/KaTeX/compare/v0.16.7...v0.16.8) (2023-06-24)

### Features

* expose error length and raw error message on ParseError ([#3820](https://github.com/KaTeX/KaTeX/issues/3820)) ([710774a](710774aaeb))
2023-06-24 05:29:48 +00:00
KaTeX bot
24533264c9 chore(release): 0.16.7 [ci skip]
## [0.16.7](https://github.com/KaTeX/KaTeX/compare/v0.16.6...v0.16.7) (2023-04-28)

### Bug Fixes

* **docs/support_table.md:** delete redundant "varPsi" ([#3814](https://github.com/KaTeX/KaTeX/issues/3814)) ([33a1b98](33a1b98710))
2023-04-28 11:42:19 +00:00
Untitled_unrevised
33a1b98710 fix(docs/support_table.md): delete redundant "varPsi" (#3814) 2023-04-28 11:37:46 +00:00
KaTeX bot
5dc7af0561 chore(release): 0.16.6 [ci skip]
## [0.16.6](https://github.com/KaTeX/KaTeX/compare/v0.16.5...v0.16.6) (2023-04-17)

### Bug Fixes

* Support `\let` via `macros` option ([#3738](https://github.com/KaTeX/KaTeX/issues/3738)) ([bdb0be2](bdb0be2017)), closes [#3737](https://github.com/KaTeX/KaTeX/issues/3737) [#3737](https://github.com/KaTeX/KaTeX/issues/3737)
2023-04-17 20:02:34 +00:00
KaTeX bot
bd502a6a9d chore(release): 0.16.5 [ci skip]
## [0.16.5](https://github.com/KaTeX/KaTeX/compare/v0.16.4...v0.16.5) (2023-04-17)

### Features

* __defineFunction API exposing internal defineFunction ([#3805](https://github.com/KaTeX/KaTeX/issues/3805)) ([c7b1f84](c7b1f84b78)), closes [#3756](https://github.com/KaTeX/KaTeX/issues/3756)
2023-04-17 17:51:59 +00:00
Erik Demaine
92ac286a3a docs: Fix \bar documentation by avoiding global redefinition (#3804)
* `\bar` examples weren't rendering correctly because of `\gdef\bar`
  example when illustrating `\gdef` and `\xdef`.
* Improve `\bar` name to `\sqr` when defining squaring
  (not necessary for fix, but improved naming).
* Fix `\def` scoping test that originally seemed related.

Fixes #3803
2023-04-11 11:29:06 -04:00
KaTeX bot
a4bfc2d210 chore(release): 0.16.4 [ci skip]
## [0.16.4](https://github.com/KaTeX/KaTeX/compare/v0.16.3...v0.16.4) (2022-12-07)

### Bug Fixes

* space should prevent optional argument to \\ ([#3746](https://github.com/KaTeX/KaTeX/issues/3746)) ([a0deb34](a0deb3410f)), closes [#3745](https://github.com/KaTeX/KaTeX/issues/3745)
2022-12-07 23:04:44 +00:00
KaTeX bot
2c13d2631f chore(release): 0.16.3 [ci skip]
## [0.16.3](https://github.com/KaTeX/KaTeX/compare/v0.16.2...v0.16.3) (2022-10-22)

### Bug Fixes

* \hline after \cr ([#3735](https://github.com/KaTeX/KaTeX/issues/3735)) ([ebf6bf5](ebf6bf5b50)), closes [#3734](https://github.com/KaTeX/KaTeX/issues/3734)
2022-10-22 16:11:14 +00:00
little-cindy
a3155ba03c docs(support_table): fix escaping of accent macros (#3732)
* Update support_table.md
2022-10-04 13:02:54 +00:00
KaTeX bot
ef49e2be91 chore(release): 0.16.2 [ci skip]
## [0.16.2](https://github.com/KaTeX/KaTeX/compare/v0.16.1...v0.16.2) (2022-08-29)

### Bug Fixes

* **auto-render:** concatenate content of successive text nodes ([#3422](https://github.com/KaTeX/KaTeX/issues/3422)) ([4d3fdd8](4d3fdd8647))
* Implement \pmb via CSS text-shadow ([#3505](https://github.com/KaTeX/KaTeX/issues/3505)) ([176552a](176552a691))
2022-08-29 21:57:29 +00:00
Erik Demaine
7e6e9eee29 docs: Fix \set documentation (#3646)
Work around `|` in tables

See https://github.com/facebook/docusaurus/issues/2004
2022-08-28 10:18:49 -07:00
KaTeX bot
cf2a46258e chore(release): 0.16.1 [ci skip]
## [0.16.1](https://github.com/KaTeX/KaTeX/compare/v0.16.0...v0.16.1) (2022-08-28)

### Bug Fixes

* Use SVGs for some stacked delims ([#3686](https://github.com/KaTeX/KaTeX/issues/3686)) ([8a65a2e](8a65a2e1fd))
2022-08-28 04:24:43 +00:00
KaTeX bot
0854e68740 chore(release): 0.16.0 [ci skip]
# [0.16.0](https://github.com/KaTeX/KaTeX/compare/v0.15.6...v0.16.0) (2022-06-06)

### Bug Fixes

* **copy-tex:** Use JS (instead of CSS) to select full equation, solving display glitches ([#3586](https://github.com/KaTeX/KaTeX/issues/3586)) ([8c2d852](8c2d852c4a))

### BREAKING CHANGES

* **copy-tex:** copy-tex extension no longer has (or requires) a CSS file.

* Code cleanup, lint fixes, port to Flow

* Rewrite to extend both start and end of range

* Remove contrib/**/*.css linting

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2022-06-06 16:13:28 +00:00
KaTeX bot
023cc0342c chore(release): 0.15.6 [ci skip]
## [0.15.6](https://github.com/KaTeX/KaTeX/compare/v0.15.5...v0.15.6) (2022-05-20)

### Features

* Support \Braket, \set, and \Set ([#3214](https://github.com/KaTeX/KaTeX/issues/3214)) ([9e3ae4d](9e3ae4d5a8))
2022-05-20 17:28:59 +00:00
Erik Demaine
9e3ae4d5a8 feat: Support \Braket, \set, and \Set (#3214)
* feat: Support \Braket, \set, and \Set

* Update screenshots.

* Rewrite to redefine | via macros

* Update screenshot after merge

* Rename \bra@ket@one -> \bra@set

* Fix spacing in \set and \Set to match braket.sty

* Add || and \| support

* Update tests

* Update screenshots

Co-authored-by: Ron Kok <ronkok@comcast.net>
2022-05-20 17:26:04 +00:00
BettyJJ
8319467151 docs(support_table): \leftarrowtail is already supported (#3515) 2022-05-20 17:15:41 +00:00
KaTeX bot
4fa84d0ca3 chore(release): 0.15.5 [ci skip]
## [0.15.5](https://github.com/KaTeX/KaTeX/compare/v0.15.4...v0.15.5) (2022-05-20)

### Bug Fixes

* Avoid crash when \ce{} is empty ([#3627](https://github.com/KaTeX/KaTeX/issues/3627)) ([4865e45](4865e45437))
2022-05-20 16:07:59 +00:00
KaTeX bot
575dab79f1 chore(release): 0.15.4 [ci skip]
## [0.15.4](https://github.com/KaTeX/KaTeX/compare/v0.15.3...v0.15.4) (2022-05-20)

### Features

* Support Unicode (sub|super)script characters ([#3633](https://github.com/KaTeX/KaTeX/issues/3633)) ([d8fc35e](d8fc35e6a9))
2022-05-20 13:53:28 +00:00
Andreas Deininger
c31256f838 docs: change links from http to https (#3635) 2022-05-19 18:15:22 -04:00
KaTeX bot
b1311aff1b chore(release): 0.15.3 [ci skip]
## [0.15.3](https://github.com/KaTeX/KaTeX/compare/v0.15.2...v0.15.3) (2022-03-13)

### Bug Fixes

* Apply operator spacing to Unicode ∙ ∘ ∖ ([#3584](https://github.com/KaTeX/KaTeX/issues/3584)) ([b362fc0](b362fc0b39))
2022-03-13 18:41:56 +00:00
KaTeX bot
38aa7af8cf chore(release): 0.15.2 [ci skip]
## [0.15.2](https://github.com/KaTeX/KaTeX/compare/v0.15.1...v0.15.2) (2022-01-12)

### Bug Fixes

* \mathinner MathML when invoked as a denominator. ([#3501](https://github.com/KaTeX/KaTeX/issues/3501)) ([1f85125](1f8512577b)), closes [#3500](https://github.com/KaTeX/KaTeX/issues/3500)
2022-01-12 17:36:06 +00:00
KaTeX bot
f5622a4cc8 chore(release): 0.15.1 [ci skip]
## [0.15.1](https://github.com/KaTeX/KaTeX/compare/v0.15.0...v0.15.1) (2021-10-31)

### Features

* \nonumber/\notag support, \tag per row of {align} ([#2952](https://github.com/KaTeX/KaTeX/issues/2952)) ([52c4778](52c4778b15)), closes [#2950](https://github.com/KaTeX/KaTeX/issues/2950) [#2379](https://github.com/KaTeX/KaTeX/issues/2379)
2021-10-31 21:43:23 +00:00
Erik Demaine
52c4778b15 feat: \nonumber/\notag support, \tag per row of {align} (#2952)
* feat: \nonumber and \notag support

Support `\nonumber` (and equivalent `\notag`) using a global macro
`\@eqnsw` to track whether one occurs in each row, similar to how
amsmath uses global `\@eqnswtrue`/`\@eqnswfalse`.

Fix #2950

* Remove duplicate mention of align*

* Working version of \tag within {align}

* Simpler subparse mechanism

* Fix flow errors, clarifying set-to-undefined

* Document that \tag works in rows

* Add screenshot tests

* Add Jest tests

* Add Safari screenshot

* Commit message about fixing \tag

Fixes #2379

* Apply suggestions from code review

Co-authored-by: ylemkimon <y@ylem.kim>

* Revise and move getAutoTag

* Fix handling of split

* Remove unnecessary feedTokens

Co-authored-by: ylemkimon <y@ylem.kim>

Co-authored-by: ylemkimon <y@ylem.kim>
2021-11-01 06:40:06 +09:00
KaTeX bot
a59135fd77 chore(release): 0.15.0 [ci skip]
# [0.15.0](https://github.com/KaTeX/KaTeX/compare/v0.14.1...v0.15.0) (2021-10-31)

### Features

* implement \relax as no-op function ([#3384](https://github.com/KaTeX/KaTeX/issues/3384)) ([40109f6](40109f6248))

### BREAKING CHANGES

* `\relax` is now implemented as a function. It'll stop
expansions and parsing, so the behavior around `\relax` may change.
For example, `\kern2\relax em` will no longer work.
2021-10-31 03:49:32 +00:00
KaTeX bot
b2ee023d80 chore(release): 0.14.1 [ci skip]
## [0.14.1](https://github.com/KaTeX/KaTeX/compare/v0.14.0...v0.14.1) (2021-10-30)

### Bug Fixes

* **Settings:** use schema ([#3375](https://github.com/KaTeX/KaTeX/issues/3375)) ([b58a432](b58a43212e))
2021-10-30 19:44:00 +00:00
KaTeX bot
23b3950f7a chore(release): 0.14.0 [ci skip]
# [0.14.0](https://github.com/KaTeX/KaTeX/compare/v0.13.24...v0.14.0) (2021-10-30)

### Features

* conditionally export ECMAScript modules ([#3377](https://github.com/KaTeX/KaTeX/issues/3377)) ([15ee9b4](15ee9b4a5a))

### BREAKING CHANGES

* With module loaders that support conditional exports
and ECMAScript modules, `import katex from 'katex';` will import the
ECMAScript module.

You can now use:
|Before                                    |After                             |
|------------------------------------------|----------------------------------|
|`require('katex/dist/contrib/[name].js')` | `require('katex/contrib/[name]')`|
|`import katex from 'katex/dist/katex.mjs'`| `import katex from 'katex'`      |
|`import 'katex/dist/contrib/[name].mjs'`  | `import 'katex/contrib/[name]'`  |
2021-10-30 19:26:31 +00:00
KaTeX bot
a28b2f084b chore(release): 0.13.24 [ci skip]
## [0.13.24](https://github.com/KaTeX/KaTeX/compare/v0.13.23...v0.13.24) (2021-10-30)

### Bug Fixes

* round dimensions to 4 places ([#2460](https://github.com/KaTeX/KaTeX/issues/2460)) ([09ee1c8](09ee1c8867))
2021-10-30 18:31:58 +00:00
ylemkimon
f007358c0f chore: rename branch master to main (#3376)
* chore: rename branch master to main

* ci: update semantic-release config

* ci: run semantic release only on main
2021-10-31 01:32:44 +09:00
KaTeX bot
167f38dede chore(release): 0.13.23 [ci skip]
## [0.13.23](https://github.com/KaTeX/KaTeX/compare/v0.13.22...v0.13.23) (2021-10-30)

### Bug Fixes

* **fonts:** correct width of \cong glyph, fix \boldsymbol{\cong} ([#3206](https://github.com/KaTeX/KaTeX/issues/3206)) ([35db4ff](35db4ff403)), closes [#2199](https://github.com/KaTeX/KaTeX/issues/2199)
2021-10-30 07:16:14 +00:00
KaTeX bot
005ca792b4 chore(release): 0.13.22 [ci skip]
## [0.13.22](https://github.com/KaTeX/KaTeX/compare/v0.13.21...v0.13.22) (2021-10-30)

### Bug Fixes

* **deps:** update dependency commander to v8 [skip netlify] ([#3374](https://github.com/KaTeX/KaTeX/issues/3374)) ([4df1922](4df1922ae9))
2021-10-30 00:21:25 +00:00
KaTeX bot
57aca23130 chore(release): 0.13.21 [ci skip]
## [0.13.21](https://github.com/KaTeX/KaTeX/compare/v0.13.20...v0.13.21) (2021-10-29)

### Bug Fixes

* **fonts:** fix the timestamp of fonts to the epoch ([#3370](https://github.com/KaTeX/KaTeX/issues/3370)) ([dde05db](dde05db6b7))
2021-10-29 19:11:27 +00:00
KaTeX bot
5a8f47cb41 chore(release): 0.13.20 [ci skip]
## [0.13.20](https://github.com/KaTeX/KaTeX/compare/v0.13.19...v0.13.20) (2021-10-26)

### Performance Improvements

* Avoid vertical-align:0em style ([#3358](https://github.com/KaTeX/KaTeX/issues/3358)) ([6d6d627](6d6d627ca4)), closes [#3351](https://github.com/KaTeX/KaTeX/issues/3351)
2021-10-26 23:13:15 +00:00
KaTeX bot
e751278cff chore(release): 0.13.19 [ci skip]
## [0.13.19](https://github.com/KaTeX/KaTeX/compare/v0.13.18...v0.13.19) (2021-10-26)

### Features

* **cli:** --trust flag for trusting cli input ([#3339](https://github.com/KaTeX/KaTeX/issues/3339)) ([503f7d7](503f7d79f9)), closes [#2428](https://github.com/KaTeX/KaTeX/issues/2428)
2021-10-26 01:15:07 +00:00
KaTeX bot
5b861c4bee chore(release): 0.13.18 [ci skip]
## [0.13.18](https://github.com/KaTeX/KaTeX/compare/v0.13.17...v0.13.18) (2021-09-02)

### Features

* unicode support for minus and asterisk operators ([#3227](https://github.com/KaTeX/KaTeX/issues/3227)) ([9dbfc1c](9dbfc1c917)), closes [#3225](https://github.com/KaTeX/KaTeX/issues/3225)
2021-09-02 21:07:24 +00:00
KaTeX bot
2df1f5fbaf chore(release): 0.13.17 [ci skip]
## [0.13.17](https://github.com/KaTeX/KaTeX/compare/v0.13.16...v0.13.17) (2021-09-01)

### Bug Fixes

* **fonts:** remove hints from unknown symbols ([#3222](https://github.com/KaTeX/KaTeX/issues/3222)) ([9420f8a](9420f8a2a9)), closes [#3219](https://github.com/KaTeX/KaTeX/issues/3219)
2021-09-01 18:42:45 +00:00
KaTeX bot
a2a7c279cf chore(release): 0.13.16 [ci skip]
## [0.13.16](https://github.com/KaTeX/KaTeX/compare/v0.13.15...v0.13.16) (2021-08-28)

### Bug Fixes

* \char support for >16-bit Unicode characters ([#3006](https://github.com/KaTeX/KaTeX/issues/3006)) ([ff1734f](ff1734f7c4)), closes [#3004](https://github.com/KaTeX/KaTeX/issues/3004)
* remove local macros upon parse error ([#3114](https://github.com/KaTeX/KaTeX/issues/3114)) ([a6f29e3](a6f29e3612)), closes [#3122](https://github.com/KaTeX/KaTeX/issues/3122)
2021-08-28 23:02:27 +00:00
KaTeX bot
90dcaef2bd chore(release): 0.13.15 [ci skip]
## [0.13.15](https://github.com/KaTeX/KaTeX/compare/v0.13.14...v0.13.15) (2021-08-28)

### Features

* text-mode cedilla accent via \c ([#3036](https://github.com/KaTeX/KaTeX/issues/3036)) ([952fb84](952fb844da)), closes [#638](https://github.com/KaTeX/KaTeX/issues/638)
2021-08-28 22:33:02 +00:00
KaTeX bot
f8c211da3c chore(release): 0.13.14 [ci skip]
## [0.13.14](https://github.com/KaTeX/KaTeX/compare/v0.13.13...v0.13.14) (2021-08-28)

### Bug Fixes

* **fonts:** update fonts dependencies ([#2866](https://github.com/KaTeX/KaTeX/issues/2866)) ([ea409ea](ea409eaf1d))
2021-08-28 22:09:25 +00:00
KaTeX bot
aa8622d4d0 chore(release): 0.13.13 [ci skip]
## [0.13.13](https://github.com/KaTeX/KaTeX/compare/v0.13.12...v0.13.13) (2021-07-21)

### Bug Fixes

* add namespace for svg, making output XHTML+SVG+MathML compatible ([#2725](https://github.com/KaTeX/KaTeX/issues/2725)) ([35ff5ac](35ff5ac223))
2021-07-21 16:50:00 +00:00
KaTeX bot
f7e70e60e5 chore(release): 0.13.12 [ci skip]
## [0.13.12](https://github.com/KaTeX/KaTeX/compare/v0.13.11...v0.13.12) (2021-07-21)

### Bug Fixes

* Correct invalid box-sizing property, adjusting spacing of \angl ([#3053](https://github.com/KaTeX/KaTeX/issues/3053)) ([910e523](910e523633)), closes [#3052](https://github.com/KaTeX/KaTeX/issues/3052)
2021-07-21 14:52:46 +00:00
KaTeX bot
4455a3b59a chore(release): 0.13.11 [ci skip]
## [0.13.11](https://github.com/KaTeX/KaTeX/compare/v0.13.10...v0.13.11) (2021-05-14)

### Bug Fixes

* matrix environment with zero or inconsistent columns ([#3018](https://github.com/KaTeX/KaTeX/issues/3018)) ([f779bac](f779bac684)), closes [#3017](https://github.com/KaTeX/KaTeX/issues/3017)

### Features

* Allow text-mode accents in math mode, except in strict mode ([#3009](https://github.com/KaTeX/KaTeX/issues/3009)) ([0e9acce](0e9acce9be)), closes [#2983](https://github.com/KaTeX/KaTeX/issues/2983)
2021-05-14 21:15:08 +00:00
KaTeX bot
b03d0c278e chore(release): 0.13.10 [ci skip]
## [0.13.10](https://github.com/KaTeX/KaTeX/compare/v0.13.9...v0.13.10) (2021-05-12)

### Bug Fixes

* Correct for negative margin in integrand lower limits ([#2987](https://github.com/KaTeX/KaTeX/issues/2987)) ([9b4acc9](9b4acc971c))
2021-05-12 01:29:07 +00:00
KaTeX bot
6dda13e1f1 chore(release): 0.13.9 [ci skip]
## [0.13.9](https://github.com/KaTeX/KaTeX/compare/v0.13.8...v0.13.9) (2021-05-07)

### Bug Fixes

* MathML for stretchy accents. [#2990](https://github.com/KaTeX/KaTeX/issues/2990) ([#2991](https://github.com/KaTeX/KaTeX/issues/2991)) ([1cb6279](1cb62799c6))
2021-05-07 03:34:19 +00:00
KaTeX bot
0f80a6ffcd chore(release): 0.13.8 [ci skip]
## [0.13.8](https://github.com/KaTeX/KaTeX/compare/v0.13.7...v0.13.8) (2021-05-06)

### Features

* \operatornamewithlimits (and clean up \operatorname support) ([#2984](https://github.com/KaTeX/KaTeX/issues/2984)) ([e9b751b](e9b751b72d))
2021-05-06 21:52:22 +00:00
Erik Demaine
e9b751b72d feat: \operatornamewithlimits (and clean up \operatorname support) (#2984)
* feat: \operatornamewithlimits (and clean up \operatorname support)

Add support for `\operatornamewithlimits` (an alias to `\operatorname*`
defined in `amsmath/amsopn.sty`), and use KaTeX's existing `\@ifstar`
macro to define `\operatorname` instead of a special lexing rule
(simplifying the lexer).

* Pick up one comment

* Actually fix docs this time

Co-authored-by: Ron Kok <ronkok@comcast.net>
2021-05-06 14:49:34 -07:00
KaTeX bot
6a7e3073a7 chore(release): 0.13.7 [ci skip]
## [0.13.7](https://github.com/KaTeX/KaTeX/compare/v0.13.6...v0.13.7) (2021-05-06)

### Bug Fixes

* binom delimiter size in scriptscriptstyle. ([#2976](https://github.com/KaTeX/KaTeX/issues/2976)) ([980b004](980b004023))
2021-05-06 18:29:57 +00:00
KaTeX bot
9cc58a8c08 chore(release): 0.13.6 [ci skip]
## [0.13.6](https://github.com/KaTeX/KaTeX/compare/v0.13.5...v0.13.6) (2021-05-06)

### Bug Fixes

* Correctly parse \ followed by whitespace ([#2877](https://github.com/KaTeX/KaTeX/issues/2877)) ([c85250d](c85250d14e)), closes [#2860](https://github.com/KaTeX/KaTeX/issues/2860)
2021-05-06 01:57:00 +00:00
KaTeX bot
9a4b662ff3 chore(release): 0.13.5 [ci skip]
## [0.13.5](https://github.com/KaTeX/KaTeX/compare/v0.13.4...v0.13.5) (2021-05-02)

### Bug Fixes

* Support \S and \P in math mode ([#2977](https://github.com/KaTeX/KaTeX/issues/2977)) ([3f7163d](3f7163daf5))
2021-05-02 20:00:14 +00:00
KaTeX bot
243451a1b9 chore(release): 0.13.4 [ci skip]
## [0.13.4](https://github.com/KaTeX/KaTeX/compare/v0.13.3...v0.13.4) (2021-05-02)

### Bug Fixes

* Avoid crash when \operatorname has \limits ([#2979](https://github.com/KaTeX/KaTeX/issues/2979)) ([fbda0b1](fbda0b1136))
2021-05-02 19:49:57 +00:00
KaTeX bot
b9959815ef chore(release): 0.13.3 [ci skip]
## [0.13.3](https://github.com/KaTeX/KaTeX/compare/v0.13.2...v0.13.3) (2021-04-24)

### Bug Fixes

* Respect catcode in macro expansion and set ~'s catcode correctly ([#2949](https://github.com/KaTeX/KaTeX/issues/2949)) ([01ae7f8](01ae7f8eef)), closes [#2924](https://github.com/KaTeX/KaTeX/issues/2924)
* **array:** Keep single empty row in AMS environments ([#2947](https://github.com/KaTeX/KaTeX/issues/2947)) ([24332e0](24332e053c)), closes [#2944](https://github.com/KaTeX/KaTeX/issues/2944)
2021-04-24 19:35:15 +00:00