Commit Graph

1469 Commits

Author SHA1 Message Date
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
Aleksey Nagovitsyn
81258c5040 Add "option" to ignoredTags (#2180) 2019-12-24 13:10:09 +09:00
Rui Okada
4b905064ab Add bra-ket notation (#2162)
* Add bra-ket notation

* Fix typo

* Remove ketbra

* Remove ketbra, add Bra and Ket

* Add Bra/Ket and fix a typo in bra's source

* Fix bra-ket typo in docs

* Fix bra-ket escape typo in docs

* Replace bra-ket pipe with \vert in docs
2019-12-11 22:02:19 -05:00
ylemkimon
800cdb2d23 Cleanup font build scripts & minor font updates (#2155)
* Minor font updates

* Update screenshots

* Cleanup build scripts
2019-12-07 13:11:45 +09:00
ylemkimon
c8c7c3954c Minor symbols.js formatting changes (#2151)
* Set acceptUnicodeChar for quote symbols

* Remove \oiint and \oiiint which have no glyphs

* Make symbols.js ASCII-safe

* Remove duplicate entries

* Use acceptUnicodeChar where applicable
2019-12-04 20:13:06 -05:00
ylemkimon
b1eeeecf91 Move \global and \def to functions (#2138)
* Add parseNode type `internal`

* Move \def and \newcommand to functions

* Fix Flow error

* Separate \global

Move \newcommand back to macros for now

* Rename assignment.js to def.js

* Update test cases

* Add comments

* Update a test case
2019-12-04 20:07:19 -05:00
ylemkimon
0d8830af30 Add \message, \errmessage, and \show for debugging (#2135)
* Add \message, \errmessage, and \show for debugging

* Remove unnecessary parentheses

* add tests for \message and \errmessage
2019-12-01 18:24:47 -05:00
ylemkimon
e5333ad04d Add HTML extension (#2082)
* Add html extension

* Fix flow error

* Update documentation

* Add tests

* Call buildA11yStrings for "html" node

* Throw ParseError when parsing \htmlData fails

* Improve documentation

* Add a screenshotter test

* Add dummy screenshot

* Update screenshots
2019-12-01 17:49:28 -05:00
Erik Demaine
9d8195c793 Reword unicode test comments (#2161) 2019-12-01 21:11:14 +09:00
Karl Traunmüller
8fcfe97e11 Fix test that was checking numerator instead of denominator (#2160)
* Test was checking numerator instead of denominator

* fixed a typo
2019-11-30 09:33:20 -05:00
ylemkimon
fa8fbc0c18 Remove checkNodeType and assert/checkAtomFamily (#2137)
We used functions with $FlowFixMe as Flow couldn't refine ParseNode 
using its type. It seems the issue has been fixed and complicated 
function calls can be removed.
2019-11-29 15:08:22 -05:00
dependabot-preview[bot]
981a9ea3a0 [Security] Bump https-proxy-agent from 2.2.1 to 2.2.4 (#2158)
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.1 to 2.2.4. **This update includes security fixes.**
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.1...2.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-19 14:37:52 +09:00
Aleksey Nagovitsyn
1e3471b290 auto-render: do not touch text nodes w/o formulas (#2154) 2019-11-18 13:18:02 +09:00
Ron Kok
d1cee3cf3d Support {rcases} and {drcases} (#2149)
* Support {rcases} and {drcases}

* Fix lint error

* Update screenshots
2019-11-10 18:36:02 +09:00
Peder B. Sundt
0772ac0e45 Minor formatting changes (#2143) 2019-11-06 15:50:48 +09:00
ylemkimon
4ec2806b3e Drop IE 9/10 support (#2136)
* Drop IE 9/10 support

* Remove IE-related comments

They no longer apply.

* Update browserslist

* Exclude old Safari (5.1)
2019-11-01 18:43:47 -04:00
ylemkimon
b14197d9c9 Update LICENSE and website to acknowledge individual copyrights as well (#2106)
* Update LICENSE to acknowledge individual copyrights as well

* Update copyright year

* Update website to acknowledge individual copyrights as well

* Update LICENSE

* Update siteConfig.js
2019-11-01 12:25:41 -04:00
Ron Kok
194b0064bc Improve MathML for corners (#1922) 2019-11-01 12:19:06 -04:00
Ron Kok
a92e39d810 Fix laps
* Fix lap with flex

* Fix lint error

* Fix more lint errors

* Fix indentation in test spec

* Update screenshots

* remove .glue class
2019-11-01 02:23:28 +09:00
Ron Kok
d10f375eed Fix \boxed inherited color (#2130) 2019-10-19 14:22:42 +09:00
kzvi
0843e9556e add spacing on left of fleqn display math (#2127)
* add spacing on left of fleqn display math

* update description of fleqn in docs/options.md

to include new spacing
2019-10-18 12:22:52 -04:00
Erik Demaine
0cdb28b256 \@ifnextchar consumes spaces (#2118)
* \@ifnextchar consumes spaces

Fix #2117 by fixing our implementation of \@ifnextchar to match LaTeX's:
consuming spaces before checking the next character.  See #2117 for details.

* Update MacroContextInterface
2019-10-13 00:33:30 +09:00
Erik Demaine
1eda0e86a0 Add support for \cal (#2116)
Fix #2115 by adding \cal to list of old-style font commands.
(Surprisingly tiny change!)
Add tests for all old-style font commands.
2019-10-10 20:46:10 -04:00
ylemkimon
634b4e2ae4 Add 'trust' setting to demo (#2107)
Ask if enabling 'trust' from the permalink
2019-10-02 21:06:53 -04:00
ylemkimon
be0c79b375 Disable eslint jest environment in non-test files (#2104) 2019-10-02 21:00:05 -04:00
ylemkimon
df4a580c94 Set border-collapse: collapse in vlist (#2103)
Fixes #2100 (any vertical layouts within <table>).
2019-10-02 20:51:58 -04:00
ylemkimon
5acd8143d7 Remove greenkeeper.json (#2105) 2019-10-02 20:39:37 -04:00
Fabio Spampinato
7093b0ce39 Notable: update (#2108)
* Added “Notable” to the list of users

* Added missing trailing comma

* alphabetize the new entry

* Notable: updated icon and website url
2019-09-29 13:07:47 +09:00