Commit Graph

1281 Commits

Author SHA1 Message Date
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
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