Commit Graph

190 Commits

Author SHA1 Message Date
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
Erik Demaine
7973f79830 docs(support): remove excess backslash in CD example (#2943) 2021-04-19 09:14:34 -07:00
deining
88caf873eb docs(autorender): Remove forgotten closing comment tag (#2916)
* Remove forgotten closing comment tag
2021-04-07 16:31:38 +00:00
semantic-release-bot
384ba3caca chore(release): 0.13.2 [ci skip]
## [0.13.2](https://github.com/KaTeX/KaTeX/compare/v0.13.1...v0.13.2) (2021-04-06)

### Bug Fixes

* update version and SRI in dist/README.md ([#2905](https://github.com/KaTeX/KaTeX/issues/2905)) ([319c52d](319c52db64))
2021-04-06 23:05:10 +00:00
semantic-release-bot
0ced751a03 chore(release): 0.13.1 [ci skip]
## [0.13.1](https://github.com/KaTeX/KaTeX/compare/v0.13.0...v0.13.1) (2021-04-05)

### Bug Fixes

* Protect fraction bars from CSS border-color ([#2870](https://github.com/KaTeX/KaTeX/issues/2870)) ([2f62c0d](2f62c0d8ee))
2021-04-05 18:40:52 +00:00
ylemkimon
266fcb046c build: move font generation to the main repo (#2837)
* build: move font generation to the main repo

* Update fonts

* chore: remove submodules

* Update paths

* Update fonts.yml

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2021-03-30 03:21:59 +09:00
Rui Okada
6cae6245ad docs: fix braket rows in support table (#2854)
Use braket macros for rendering examples and fix escaping of pipes (|) to properly display table

Co-authored-by: ylemkimon <y@ylem.kim>
2021-03-23 17:58:11 +00:00
deining
29d7a2ad7d docs: minor documentation fixes (#2852)
Co-authored-by: ylemkimon <y@ylem.kim>
2021-03-24 02:54:36 +09:00
nks5117
1a7167cdbb docs: add an iOS library (#2838)
Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
Co-authored-by: ylemkimon <y@ylem.kim>
2021-03-23 14:50:52 +00:00
ylemkimon
3568cb9c99 build: use semantic-release to automate release (#2830)
* Link to previous deploys of releases instead of versioned docs

* Use semantic-release to automate release

* Use an environment for release job

* Run release only on push event
2021-03-22 15:30:57 +09:00
Kevin Barabash
c80017ba08 Release v0.13.0 (#2824) 2021-03-08 21:58:35 -05:00
Erik Demaine
47cfea212c docs: Fix fallback CSS classes (#2809)
Co-authored-by: Ron Kok <ronkok@comcast.net>
2021-03-01 09:44:27 -08:00
Ron Kok
1f509a3b75 feat: Support \underbar (#2713)
* feat: Support \underbar

* Update screenshots
2020-12-30 10:15:17 -05:00
Ron Kok
7fe6778d2d feat: Add {CD} to auto-render. (#2710)
* Add {CD} to auto-render.

* Semantic PR

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-12-28 22:56:59 -05:00
Ron Kok
a829fa10f8 docs: Rearrange environment documentation. (#2700)
* docs: Rearrange enviroment documentation.

* Adjust widths. Add alignat source.

* Add CD environment to supported.md

* Delete two empty cells.

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-12-28 13:50:38 -05:00
Ron Kok
5c44c47bd2 feat: Set Auto-render to recognize AMS environments without $$…$$ delimiters. (#2701)
* feat: Set Auto-render to recognize AMS environments without $$…$$ delimiters.

* Replace tab with spaces

* Treat AMS environments correctly.
2020-12-27 18:29:55 -05:00
Ron Kok
26ed77f598 docs: Explain how to make macros persist. (#2702)
* docs: Explain how make macros persist.

* Revise per comments.

* Pick up comments.
2020-12-27 15:34:20 -05:00
Ron Kok
75a3af9725 feat: Support {CD} (#2396)
* Support {CD}

* Edit screenshotter test to fit on one page

* Update screenshots

* Remove bogus Safari screenshot

* Edit documentation to avoid tag conflicts and explain delimiters

* Add type annotations

* Add bogus safari screenshot

* Update with real Safari screenshot

* Set label vertical alignment

* Revise call to parseExpression() per PR 2085 changes to macro parsing

* Update Firefox screenshot

* Pick up review comments

* Add unit tests and snapshot.

* Tighten up label collection.

* Better loop index

* remove extra space

* Picked up comments. Added a parse check. Added a test.

Co-authored-by: ylemkimon <y@ylem.kim>
Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
Co-authored-by: Kevin Barabash <kevinb7@gmail.com>
2020-12-27 13:45:31 -05:00
Ron Kok
5b80a59414 docs: Revise placement of colonequals in Relations table (#2704) 2020-12-24 16:13:37 -05:00
Brian Strauch
7b61b9f049 docs: delete stray backtick (#2680)
* docs: delete stray backtick

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-12-13 13:43:13 -05:00
Ron Kok
b69da81093 docs: Add colonequals functions to docs (#2651)
* docs: Add colonequals functions to docs

* Delete empty row from supported.md

Co-authored-by: ylemkimon <y@ylem.kim>
Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-12-13 13:00:10 -05:00
Ron Kok
17e86b985a fix: Remove premature CD screenshotter images (#2641)
* Remove premature CD screenshotter images

* Recommit for semantic pull request

Co-authored-by: ylemkimon <y@ylem.kim>
2020-11-15 05:48:48 +09:00
Ron Kok
753c82f360 fix: Support Armenian characters (#2618)
* Support Armenian characters

* Update docs

Co-authored-by: ylemkimon <y@ylem.kim>
2020-11-15 05:44:31 +09:00
Ron Kok
60aecbdfe2 feat: Support \vcenter and \hbox (#2452)
* Support \vcenter, \raise, \lower, and \hbox

* Update screenshots

* Edit docs for strict and hbox to

* Fix typo for \hbox to

* Update Safari screenshot

* Augment docs for \vcentcolon

* Edit vcenter MathML comment.

* Remove pointless class from vcenter MathML

* Withdraw \raise and \lower

* Updatae Chrome and Firefox screenshots

* Update Safari screenshot

* Delete allowedInArgument setting

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

* Update Chrome and Firefox screenshots

* Update Chrome and Firefox screenshots take 2

* Update screenshot

Co-authored-by: ylemkimon <y@ylem.kim>
2020-11-14 18:45:14 +09:00
Ron Kok
b21341560f docs: Add \char to support_table. (#2620) 2020-11-02 11:46:06 -05:00
Ron Kok
d3ed854a74 docs: Fix documentation typo in operatorname* (#2570)
* docs: Fix documentation typo in operatorname*

* Add backticks to docs of \operatorname
2020-10-08 15:07:11 -07:00
ylemkimon
5a90558116 feat(function): add allowedInArgument instead of greediness property (#2134)
* Remove `greediness` property

Use boolean `grouped` property instead, which is more consistent with 
LaTeX.

BREAKING CHANGE: \cfrac, \color, \textcolor, \colorbox, \fcolorbox are 
no longer grouped.

* Rename grouped to allowedInArgument

* Reenable tests

* Update documentation

* Fix typo

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-09-07 13:38:17 +09:00
Ron Kok
37990cc5b3 feat: Support matrix*, pmatrix*, bmatrix*, Bmatrix*, vmatrix*, and Vmatrix*. (#2488)
* Support matrix*, pmatrix*, bmatrix*, Bmatrix*, vmatrix*, and Vmatrix*

* Add tests and docs

* Delete screeshotter tests

* Fix column alignment and add bogus screenshot files

* Update real Chrome and Firefox screenshots.

* Update Safari screenshot

* Dedupe code in array.js

* Edit payload in array.js

* Edit again, correctly this time.
2020-09-06 09:56:09 -07:00
ylemkimon
dc5f97aaa2 feat(macro): improve argument parsing (#2085)
* Improve macro argument parsing

* Make \above a primitive command

* Fix screenshotter data

* Normalize argument where necessary

* Improve argument location info

* Update comments

* Minor refactor

* Modularize group parsers

* Allow braced and blank size argument

for non-strict mode and \genfrac, respectively.

* Minor refactor & update comments

* Remove raw option in parseStringGroup

* Update tests

* Fix { delimited parameter

* Update tests

* Update tests

* Normalize argument in \genfrac

* Update tests

* Consume space before scanning an optional argument

* Fix \\, \newline, and \cr behavior

* Fix flow error

* Update comments

* Remove unnecessary mode switching

Parser mode affects neither fetch nor consume.

* Allow single (active) character macro

* Add function property `primitive`

* Set \mathchoice and \*style primitive

* Separate size-related improvements out to #2139

* Fix flow error

* Update screenshots

* Update demo example

* Add a migration guide

* Fix capitalization

* Make a primitive function unexpandable

* Update screenshots

* Update screenshots

* Revert "Document \def doesn't support delimiters (#2288) (#2289)"

This reverts commit f96fba6f7f.

* Update comments, errors, and tests

* Update screenshots
2020-09-06 12:56:13 +09:00
Ron Kok
010b267dd6 fix: Support MathML \oiint and \oiiint (#2461)
* fix: Support MathML \oiint and \oiiint

* Update direct input section of docs
2020-08-30 15:44:34 -07:00
Ron Kok
b22b69c3a8 fix: \injlim typo (#2459)
* Fix typo in \injlim

* Just to satisfy Semantic Pull Request
2020-08-26 09:14:18 -07:00
Ron Kok
987a84ee04 docs: add comment re: \arrowvert (#2449) 2020-08-22 01:59:37 +09:00
Ron Kok
794dc7a213 feat: support AMS log-like symbols (#2429)
* Support AMS log-like symbols

* Update documentation

* Update \limits info in documentation
2020-08-18 05:28:42 +09:00
Ron Kok
b59ca67530 feat: support Unicode ◯, U+25EF (#2430)
* Support Unicode U+25EF \bigcirc

* Update documentation
2020-08-17 20:35:24 +09:00
Ron Kok
42cc5e507e feat: Support \phase (#2406)
* Support \phase

* Update screenshots

* Update documentation

* Add a11y test

* Edit MathML notation to phasorangle

* Move code to enclose.js

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-08-13 00:08:36 -04:00
Ron Kok
26e0a05221 feat: Support \mathstrut (#2416)
* feat: Support \mathstrut

* Update screenshots
2020-08-12 23:45:33 -04:00
Ron Kok
ab5936a6e7 feat: support {equation}, {equation*}, and {split} (#2369)
* Support {equation}, {equation*}, and {split}

* Update screenshots

* Allow {split} at top level

* Move equation column number check to to ParseArray

* Add token to ParseError

* Sharpen parameters passed to parseArray

* Add token information

* Update an {array} spec in screenshotter

* Adjust {array} screenshotter spec

* Make a non-strict error call when {array} argument specifies too few columns.

* Move context checks to a helper function.
2020-08-04 01:35:41 +09:00
Ron Kok
903b459ca4 Update \color documentation (#2370)
* Update \color documentation

* Update options.md

* Add version numbers.

* Remove MathJaX version number.
2020-08-01 17:53:55 -04:00
Ron Kok
2f37dc9104 feat: support {align}, {align*}, {alignat}, and {alignat*} (#2341)
* Support {align}, {align*}, {alignat}, and {alignat*}

* Specify display mode for screenshots

* Add bogus screenshots

* Some screenshotter progress

* Update screenshots
2020-07-29 00:02:08 +09:00
Ron Kok
80b0e3dc20 Support {gather} and {gather*} (#2183)
* Support `gather` and `gather*`

* Add bogus screenshots

* Add correct screenshots

* Fix typo

* Update screenshots

* Improve error handling

* Scope styles inside .katex{}

* Revert console.log to console.error
2020-07-27 06:56:39 -07:00
Ron Kok
e76857ec03 feat: support \angl and \angln (#2334)
* Support \angl and \angln

* Update screenshots

* Update documentation
2020-07-25 22:53:11 +09:00
Ron Kok
611fe6b698 Support \origof and \imageof (#2283)
* Support \origof and \imageof

* Fix documentation table

Co-authored-by: ylemkimon <mail@ylem.kim>
2020-07-17 17:20:23 +09:00
ylemkimon
c387b9c747 v0.12.0 release (#2302)
* Release v0.12.0

Bump master to v0.12.1-pre

* Update CHANGELOG

* Uncomment ES module documentation

* Update CHANGELOG.md

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

* Update CHANGELOG.md

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-13 05:46:01 +09:00
Erik Demaine
57492893d4 Show HTML results from \html* commands (#2297)
Co-authored-by: ylemkimon <mail@ylem.kim>
2020-07-12 04:03:24 +09:00
Ron Kok
754c601e34 Add note re: HTML to security documentation page (#2296)
* Add note re: HTML to security documentation page

* Update docs/security.md

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

Co-authored-by: ylemkimon <y@ylem.kim>
Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-11 11:04:27 -07:00
Tsukamoto
603e299c28 Add Documentation for using single-dollar symbol for the KaTex (#2269)
* Add Documentation for using single-dollar symbol for the Katex

* xfi Katex to KaTex

* Revision pass and move to delimiters bullet

* Fix indentation, remove blank line

Co-authored-by: Erik Demaine <edemaine@mit.edu>
Co-authored-by: Ron Kok <ronkok@comcast.net>
2020-07-10 10:24:09 -07:00
Qcho
507d8f7e32 Add detail about colorbox third text parameter (#2280)
* Add detail about colorbox third text parameter

As stated in issue #1766

* Change colorbox example to use math

* Upgrade remarkable-katex to 1.1.5

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-10 08:34:28 -07:00
Erik Demaine
f96fba6f7f Document \def doesn't support delimiters (#2288) (#2289) 2020-07-09 08:35:45 -07:00
Ron Kok
1764d25048 Support \minuso (#2213)
* Support \minuso

* Update screenshots

* Add MathML version

* Add BIN spacing

* Update screenshots

* Add Unicode character

* Delete duplicate macro

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-08 19:28:43 -04:00
Brent Yi
206fbd0126 Submodule fix for "build from source" instructions (#2239) 2020-04-13 09:49:34 -04:00