Commit Graph

190 Commits

Author SHA1 Message Date
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
Ron Kok
d8fc35e6a9 feat: Support Unicode (sub|super)script characters (#3633)
* feat: Support Unicode (sub|super)script characters

* Acquire tokens via repeated fetch()

* Match more Unicode (sub|super)script characters

* Update docs with new characters

* Add Greek characters to RegEx

* Pick up review comments

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2022-05-20 09:50:34 -04: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
Ron Kok
b362fc0b39 fix: Apply operator spacing to Unicode ∙ ∘ ∖ (#3584)
* Apply operator spacing to Unicode ∙ ∘ ∖

* Appease Semantic Versioning.

* Fix website build issue

* Tweak docs to space final bin correctly

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2022-03-13 14:38:16 -04:00
Nico Schlömer
beed61fd95 doc: improve globalGroup description regarding macros object (#3567)
* Better doc for `globalGroup`
* Mention `globalGroup` in `macros`
* Example uses `macros` argument passed to multiple examples
* Include `renderToString` example that sets `macros`

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2022-02-21 16:55:16 -05: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
ylemkimon
40109f6248 feat: implement \relax as no-op function (#3384)
* feat: implement \relax as no-op function

BREAKING CHANGE: `\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 12:46:43 +09: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
ylemkimon
15ee9b4a5a feat: conditionally export ECMAScript modules (#3377)
* feat: conditionally export ECMAScript modules

BREAKING CHANGE: 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:23:56 +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
remLse
052f0006f1 docs(supported.md): update letters reference (#3371)
* fix(docs/supported.md): update letters reference

* Add missing period

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2021-10-29 17:46:53 +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
isamu arimoto
4cf5120e47 docs: typo in node.md (#3285)
Fixed mhchem sample code that didn't work
2021-09-27 04:38:24 +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
Erik Demaine
9dbfc1c917 feat: unicode support for minus and asterisk operators (#3227)
Fixes #3225
2021-09-02 17:04:29 -04: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
ylemkimon
ea409eaf1d fix(fonts): update fonts dependencies (#2866)
* fix(fonts): update fonts dependencies

* chore(fonts): fix buildMetrics for Python 3

* fix(fonts): update fonts

* test: update screenshots

* docs: update reference to katex-fonts

* chore: use Python 3

* fix(fonts): update fonts

* test: update screenshots

* Use explicit path

* Command-line arguments aren't actually supported

* Small buildMetrics fixes

* Add build:{fonts,metrics} script

* Lock versions of font-related dependencies

* Install minimal texlive

* Install fontforge

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2021-08-29 07:06:42 +09:00
Erik Demaine
877e725620 refactor: separate defineMacro.js from macros.js (#3198)
Allows defineMacro to be called from other places, in particular
removing cycles from the dependency graph.
2021-08-28 05:15:22 +09: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
Mingye Wang
7933729701 docs: mention wrapping in inline mode (#2972)
* docs: mention wrapping in inline mode

* Apply suggestions from code review

Co-authored-by: Erik Demaine <edemaine@mit.edu>

* Add some CSS examples. 

* fixup! docs/issues: remove fleqn thing

* Minor tweaks

* Link to custom CSS

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2021-05-12 14:32:14 +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
Ron Kok
3f7163daf5 fix: Support \S and \P in math mode (#2977)
Co-authored-by: Erik Demaine <edemaine@mit.edu>
2021-05-02 15:57:39 -04: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