Commit Graph

1372 Commits

Author SHA1 Message Date
ylemkimon
4a6f776941 test: mock console implementation (#2363)
Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-08-03 13:05:17 +09:00
ylemkimon
8460189dca Update LICENSE year (#2374)
Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-08-02 18:02:27 -04:00
ylemkimon
f9cd9de100 test(screenshotter): move coverage to Jest (#2324)
* Move screenshotter coverage collection to Jest testing

Fixes #1885.

* Update screenshotter-spec.js

* Update screenshotter-spec.js

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-08-02 17:58:40 -04:00
ylemkimon
1ffb638da8 Fix test/symgroups.js (#2314)
I forgot to change it in #1595.

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-08-02 17:09:51 -04:00
ylemkimon
891aae039e Use base revision provided by CircleCI (#2309)
instead of GitHub API

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-08-02 15:25:17 -04:00
ylemkimon
6b0d0d4d25 Delete bower.json (#2372)
Bower is deprecated about three years ago and this [triggers `bower install` on Netlify builds](https://docs.netlify.com/configure-builds/manage-dependencies/#bower), which take about a minute.
2020-08-03 03:39:12 +09:00
Ron Kok
e3c01376c8 Enable a MathML option in the KaTeX demo. (#2371)
* Enable a MathML option in the KaTeX demo.

* Add `output` to `katexOptions`
2020-08-03 02:57:19 +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
dependabot[bot]
c88f5b3937 build(deps-dev): bump eslint from 7.5.0 to 7.6.0 (#2368) 2020-08-01 06:22:19 +00:00
dependabot[bot]
170e0107ac build(deps-dev): bump css-loader from 4.1.1 to 4.2.0 (#2366) 2020-07-31 18:00:55 +00:00
dependabot[bot]
0de61b5d8c build(deps-dev): bump babel-jest from 26.2.1 to 26.2.2 (#2365) 2020-07-31 17:50:07 +00:00
dependabot[bot]
ac400b61e3 build(deps-dev): bump jest from 26.2.1 to 26.2.2 (#2364) 2020-07-31 17:41:03 +00:00
dependabot[bot]
4be63a4dae build(deps-dev): bump @babel/plugin-transform-runtime (#2361) 2020-07-31 07:08:46 +00:00
dependabot[bot]
80b2d37476 build(deps-dev): bump @babel/preset-env from 7.10.4 to 7.11.0 (#2362) 2020-07-31 06:04:02 +00:00
dependabot[bot]
eb8acb688a build(deps-dev): bump @babel/core from 7.10.5 to 7.11.0 (#2360) 2020-07-31 05:53:26 +00:00
dependabot[bot]
200613c9c1 build(deps-dev): bump @babel/runtime from 7.10.5 to 7.11.0 (#2359) 2020-07-31 05:08:19 +00:00
dependabot[bot]
614f8eecca build(deps-dev): bump css-loader from 4.1.0 to 4.1.1 (#2357) 2020-07-30 17:15:07 +00:00
dependabot[bot]
c447e26d27 build(deps-dev): bump jest-matcher-utils from 26.1.0 to 26.2.0 (#2356) 2020-07-30 17:02:11 +00:00
dependabot[bot]
9d6ca6c91e build(deps-dev): bump webpack from 4.44.0 to 4.44.1 (#2355) 2020-07-30 16:47:41 +00:00
dependabot[bot]
798aa2d19e build(deps-dev): bump jest-diff from 26.1.0 to 26.2.0 (#2353) 2020-07-30 16:35:52 +00:00
dependabot[bot]
7d3bda958d build(deps-dev): bump jest-message-util from 26.1.0 to 26.2.0 (#2354) 2020-07-30 16:24:35 +00:00
dependabot[bot]
a1de1f99fb build(deps-dev): bump jest from 26.1.0 to 26.2.1 (#2352) 2020-07-30 16:15:28 +00:00
dependabot[bot]
dffac97ce0 build(deps-dev): bump babel-jest from 26.1.0 to 26.2.1 (#2351) 2020-07-30 16:00:07 +00:00
dependabot[bot]
0367cf84da build(deps-dev): bump caniuse-lite from 1.0.30001107 to 1.0.30001109 (#2349) 2020-07-30 07:38:46 +00:00
dependabot[bot]
9c3b9f4cfa build(deps-dev): bump css-loader from 4.0.0 to 4.1.0 (#2348) 2020-07-30 05:56:07 +00:00
dependabot[bot]
ad277cd787 build(deps-dev): bump eslint-plugin-react from 7.20.4 to 7.20.5 (#2345) 2020-07-29 08:42:16 +00: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
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