Commit Graph

1296 Commits

Author SHA1 Message Date
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
dependabot[bot]
fb710f0f9a build(deps-dev): bump terser-webpack-plugin from 3.0.7 to 3.0.8 (#2342) 2020-07-28 05:54:17 +00: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
dependabot[bot]
0f0e40d226 build(deps-dev): bump eslint-plugin-react from 7.20.3 to 7.20.4 (#2340)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.3 to 7.20.4.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.20.3...v7.20.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-27 14:37:40 +09:00
dependabot[bot]
7f504dc395 build(deps-dev): bump caniuse-lite from 1.0.30001106 to 1.0.30001107 (#2339)
Bumps [caniuse-lite](https://github.com/ben-eb/caniuse-lite) from 1.0.30001106 to 1.0.30001107.
- [Release notes](https://github.com/ben-eb/caniuse-lite/releases)
- [Changelog](https://github.com/ben-eb/caniuse-lite/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ben-eb/caniuse-lite/compare/v1.0.30001106...v1.0.30001107)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-27 14:31:11 +09:00
dependabot[bot]
4a1b5699a1 build(deps): bump caniuse-lite from 1.0.30001105 to 1.0.30001106 (#2337)
Bumps [caniuse-lite](https://github.com/ben-eb/caniuse-lite) from 1.0.30001105 to 1.0.30001106.
- [Release notes](https://github.com/ben-eb/caniuse-lite/releases)
- [Changelog](https://github.com/ben-eb/caniuse-lite/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ben-eb/caniuse-lite/compare/v1.0.30001105...v1.0.30001106)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-26 14:11:52 +09:00
Ron Kok
05d1e7caf1 feat: support MathML \big, \bigg, \Big, and \Bigg (#2332)
* Support MathML \big, \bigg, etc

* Add stretchy attribute

* Update mathml-spec.js.snap

Co-authored-by: ylemkimon <y@ylem.kim>
2020-07-26 04:26:00 +09:00
Sven Frotscher
b75f3e55f3 docs: add Marker as a KaTeX user (#2329)
Co-authored-by: ylemkimon <mail@ylem.kim>
2020-07-26 03:58:21 +09:00
ylemkimon
0ea07dff96 Create dependabot.yml (#2311) 2020-07-25 11:45:56 -07:00
ylemkimon
8a24907518 build(deps): update dependencies (#2301)
* Bump flow version

* Bump jest version

* Bump eslint version

* Bump rollup version

* Bump webpack version

* Bump misc dependencies and update lockfile

* Update lockfile

* Bump commander version

* Bump misc dependencies

* Bump istanbul version

* Bump docusaurus version

* Update lockfile

* Explicitly declare dependencies

* Bump caniuse-lite version

* Update lockfile

* Bump commander version

* Bump webpack and css-loader version

* Bump flow version
2020-07-25 11:38:29 -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
dependabot-preview[bot]
d1ad2e0b8b [Security] Bump codecov from 3.6.5 to 3.7.1 (#2328) 2020-07-21 07:32:46 +00: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
3dd1ed45b4 Run screenshotter using Chrome 83 and Firefox 76 (#2304)
* Run screenshotter using Chrome 83 and Firefox 76

* Update screenshots

* Update NegativeSpace-chrome screenshot

The new screenshot is correct as per #1194.

* Update Units-chrome screenshot

The new screenshot is correct as per #732 and compared to Firefox.

* Update screenshots
2020-07-14 08:48:55 -07: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
ylemkimon
1a8f682155 Fix missing metrics for space (0x20) and no-break space (0xa0) (#2298)
* Fix missing metrics for space (0x20) and no-break space (0xa0)

* Update a screenshot

* Update font submodule

* Add a regression test
2020-07-13 03:38:34 +09:00
Ron Kok
2c5a3b8fdc Set MathML of \boldsymbol{textord} to bold, not bold-italic (#2299)
* Set \boldsymbol{textord} to bold, not bold-italic

* Finish adding files.
2020-07-11 21:10:11 -04: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
ylemkimon
d1c0468ef8 Reorganize some glyphs, simplify font selection, break \mathcal{123} (#2156)
* Reorganize some glyphs

* Remove mathdefault

Numerals are textord and it was never reachable.

* Use PUA for \imath and \jmath

* Update katex-fonts

* Update tests

* Update src/buildCommon.js

* Update screenshots

* Add comment regarding usage of PUA in \imath and \jmath

* Update fonts

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-11 14:54:28 -04: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
Erik Demaine
b027dca926 Restore trust/strict options to remarkable-katex plugin (#2295)
Fix a mistake introduced in #2280
2020-07-12 02:56:26 +09:00
Erik Demaine
5a9d146add Link to Netlify on front page (#2294) 2020-07-11 13:03:05 -04:00
Erik Demaine
1512de5b35 Reset to leftmost spacing mode after newline (#1841)
* Reset to leftmost spacing mode after newline

Newlines have class "mspace newline" but shouldn't be fully ignored:
they should reset the spacing mode back to "leftmost" so as to not
accidentally create trailing spaces at end of lines.  Fix #1828.

* Update snapshots

* Add root detection, and treat newline specially only then

Co-authored-by: ylemkimon <mail@ylem.kim>
2020-07-11 12:36:51 -04: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
Ron Kok
48dff183b5 Protect fraction bars from CSS border-color (#2292) 2020-07-10 13:16:39 -04: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
7523e9714a \boldsymbol not italic for textords such as Greek (#2290)
* \boldsymbol not italic for textords such as Greek

Fix #2225: `\boldsymbol{\Omega}` will now produce a bold upright Omega
instead of a bold italic Omega.  This only affects `textord` symbols within
`\boldsymbol`, mimicking the no-font case in `makeOrd` which distinguishes
`textord` from `mathord` in a similar way.

* Update screenshots

Co-authored-by: Ron Kok <ronkok@comcast.net>
2020-07-09 09:22:33 -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
dependabot-preview[bot]
08df797afa [Security] Bump handlebars from 4.5.3 to 4.7.6 (#2256)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.5.3 to 4.7.6. **This update includes a security fix.**
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.5.3...v4.7.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-08 18:41:42 -04:00
dependabot-preview[bot]
1c0f55950c [Security] Bump websocket-extensions from 0.1.3 to 0.1.4 (#2268)
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4. **This update includes a security fix.**
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-08 18:33:49 -04:00
Ron Kok
d6e8575942 Fix jagged parentheses (#2234)
* Fix jagged parentheses

* Update screenshots

* Coordinate overlap with repeat element length.

* Fix lint error.

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-08 18:20:42 -04:00
ylemkimon
3272472ffe Use babel-plugin-preval instead of own unicodeMake for unicodeSymbols (#2153)
* Use babel-plugin-preval instead of own unicodeMake for unicodeSymbols

* Fix circular dependency transpiling issue

* Flow type unicodeSymbols.js

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-08 17:58:11 -04:00
Emily Eisenberg
f2886af6de Update API language on auto-render script (#2279)
I noticed that the docs said there were "two auto-render-specific
keys" and then proceeded to list 5 extra keys that could be passed. I
updated the language in all of the versions of docs because they were
all incorrect.

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-08 15:53:35 -04:00
Ron Kok
467052ce21 Enable an empty \substack (#2278) 2020-07-08 15:50:50 -04:00
Fabio Spampinato
c2e5a289c0 Updated Notable's domain address (#2263) 2020-05-30 14:42:07 -04:00
Ron Kok
4d99b4c8ac Enable empty environment (#2258) 2020-05-17 09:33:11 -04:00
Ron Kok
d49da10d79 Fix under accent depth (#2252)
* Fix under accent depth

* Update screenshots
2020-05-02 18:16:36 +09:00
Brent Yi
206fbd0126 Submodule fix for "build from source" instructions (#2239) 2020-04-13 09:49:34 -04:00
Sophie Alpert
f09955c547 Fix grammar error in tagline (#2231) 2020-04-05 12:32:09 -04:00
Ron Kok
69a22d3cfb Support MathML display mode (#2220) 2020-03-24 02:28:43 +09:00
dependabot-preview[bot]
284ccc602a [Security] Bump acorn from 5.7.3 to 5.7.4 (#2217)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. **This update includes a security fix.**
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-21 22:51:15 +09:00
ylemkimon
9917d1ce84 Add support for \expandafter, \noexpand, \edef, \let, and \long (#2122)
* Add support for \expandafter

* Add support for \noexpand

* Add support for \edef

* Update comments

* Allow \long before macro definition

* Update documentation

* Update comments

* Fix defPrefix

* Add support for \let

* Update documentation

* Print error token

* Update documentation

* Check whether command is expandable

* Add tests

* Fix token order

* Make noexpand a Token property

* Throw error if control sequence is undefined when expanding

* Rename expandableOnly to expandOnly

* Make unexpandable macro property

* Move \expandafter to macros.js

* Add TODO

* Fix merge conflict

* Update a test case

* Remove unused functions in MacroContextInterface

* Update comments

* Refactor code

* Move \noexpand to macros

* Update MacroExpander.js

* Add a test case

* Separate control sequence check to a function

* Add support for \futurelet

* Separate RHS getter to a function

* Update documentation

* Move expandOnly logic to expandOnce

* Refactor code and update comments

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-03-11 12:14:34 +09:00
Cheng XU
d6a4379b49 libs.md: add Rust library (#2195)
Add a mention to the Rust library <https://github.com/xu-cheng/katex-rs> in the document.

Co-authored-by: Kevin Barabash <kevinb7@gmail.com>
2020-02-22 09:39:58 -05:00
ylemkimon
f7334e4eeb Update fonts: remove unused glyphs and Macintosh table (#2171)
Co-authored-by: Kevin Barabash <kevinb7@gmail.com>
2020-02-21 17:39:18 -05:00
dependabot-preview[bot]
213f317fca [Security] Bump codecov from 3.2.0 to 3.6.5 (#2202) 2020-02-21 13:48:33 +00:00
ylemkimon
3205e91731 Upgrade minimum development Node version to v10 (#2177)
Node v8 will reach its end-of-life by December 2019.

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-01-06 13:58:04 -05:00
Erik Demaine
e85fdd7212 Improve server-side rendering documentation (#2178)
* Improve server-side rendering documentation

* Fix typo

* Document Node + mhchem

* Re-order require statements

Co-authored-by: ylemkimon <mail@ylem.kim>
2020-01-04 19:55:12 +09:00
Erik Demaine
3cb9bd78bb Fix delimiter error message (#2186)
* Fix delimiter error message

Avoid "circular structure" error message by avoiding JSON.stringify on a
parse structure when getting an invalid delimiter type (e.g. ordgroup).
Instead, report type of delimiter when it's invalid.  Fixes #2184.

* Fix and add tests
2020-01-04 18:10:11 +09:00
dependabot-preview[bot]
754e79a12e [Security] Bump handlebars from 4.1.2 to 4.5.3 (#2181) 2019-12-27 16:26:29 +00:00