Commit Graph

186 Commits

Author SHA1 Message Date
ylemkimon
c0a9a6d961 chore(deps): update to webpack 5 (#2664)
Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-12-28 22:45:05 -05:00
ylemkimon
8803649179 ci: run screenshotter in container (#2644)
* ci: run screenshotter in container

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-12-19 09:16:34 +09:00
renovate[bot]
3f443a13b5 chore(deps): update dependency pako to v2 [skip netlify] (#2658)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-23 05:42:31 +09:00
renovate[bot]
23f906e9ca chore(deps): update dependency webpack-bundle-analyzer to v4 [skip netlify] (#2633)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-14 11:15:54 +09:00
renovate[bot]
99a875d377 chore(deps): update dependency mini-css-extract-plugin to v1 [skip netlify] (#2580)
* chore(deps): update dependency mini-css-extract-plugin to v1 [skip netlify]

* chore(deps): update dependency style-loader to v2 [skip netlify]

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Young Min Kin <mail@ylem.kim>
2020-10-13 18:45:26 +09:00
renovate[bot]
9bd11d8ba8 chore(deps): update dependency mini-css-extract-plugin to ^0.12.0 [skip netlify] (#2573)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-10 14:24:28 +00:00
renovate[bot]
c6bb7f7d6c chore(deps): update dependency flow-bin to v0.135.0 [skip netlify] (#2563)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-04 00:52:06 +00:00
renovate[bot]
16a34c3b35 chore(deps): update dependency flow-bin to v0.134.0 [skip netlify] (#2533)
* chore(deps): update dependency flow-bin to v0.134.0 [skip netlify]

* Fix flow errors

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Young Min Kin <mail@ylem.kim>
2020-09-26 12:19:42 +09:00
renovate[bot]
11c1e83579 chore(deps): update dependency postcss-loader to v4 (#2511)
* chore(deps): update dependency postcss-loader to v4

[skip netlify]

* Add postcss dependency

* Add postcssOptions

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Young Min Kin <mail@ylem.kim>
2020-09-12 13:46:00 +09:00
renovate[bot]
6599158921 chore(deps): update dependency flow-bin to ^0.133.0 (#2509)
* chore(deps): update dependency flow-bin to ^0.133.0

[skip netlify]

* Update .flowconfig, editor SDKs, and flow-typed

* chore(deps): update dependency flow-bin to ^0.133.0

[skip netlify]

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ylemkimon <mail@ylem.kim>
2020-09-12 13:28:51 +09:00
renovate[bot]
7a37d128c7 chore(deps): update dependency mini-css-extract-plugin to ^0.11.0 (#2510)
[skip netlify]

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-12 04:05:24 +00:00
dependabot[bot]
730732fddb build(deps-dev): bump flow-bin from 0.131.0 to 0.132.0 (#2453) 2020-08-31 18:53:45 +09:00
ylemkimon
a82d4c44e0 test: lint all js files and inline scripts in workflow (#2442)
* Lint all js files

Closes #2414

* Lint inline scripts in workflow

* Upgrade eslint-plugin-actions to 1.0.1

Test plan:
1. Add `console` statement to the script in `.github/workflows/ci.yml`
2. Check `no-console` error is shown in `eslint`
2020-08-30 10:09:47 +09:00
dependabot[bot]
4a7aa8a04b build(deps-dev): bump less-loader from 6.2.0 to 7.0.0 (#2466) 2020-08-29 12:46:36 +00:00
ylemkimon
221042be86 ci: migrate to GitHub Actions from CircleCI, allow running Browserstack on forked repo via label (#2417)
* Remove CircleCI and codecov

* Add GitHub Actions workflow

* Add Browserstack credentials

* Skip tests if ci skip or skip ci is in commit messages

* Update and rename test.yml to ci.yml

* Postfix artifacts name with browser

* Disable proxy on chrome

* Update dockers/screenshotter/screenshotter.js

* Add status badge

* Set directory option in codecov action

* Run Browserstack on forked repo via label

* Print Docker logs

* Disable GPU on ChromeDriver

* Add comments

* Add comments
2020-08-18 04:58:08 +09:00
dependabot[bot]
6f260a7004 build(deps-dev): bump mini-css-extract-plugin from 0.9.0 to 0.10.0 (#2411) 2020-08-11 09:48:38 +00:00
dependabot[bot]
4edc5b176d build(deps-dev): bump flow-bin from 0.130.0 to 0.131.0 (#2393) 2020-08-07 07:38:09 +00:00
dependabot[bot]
b47d366af2 build(deps-dev): bump terser-webpack-plugin from 3.1.0 to 4.0.0 (#2387)
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 3.1.0 to 4.0.0.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.1.0...v4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-05 19:28:18 +09:00
ylemkimon
36f9788cd6 chore(screenshotter): support Browserstack and test on Safari 13.1 (#2306)
* Support Browserstack in screenshotter

* Support Browserstack in CircleCI

* Test screenshots on Safari 13.1

* Don't run Safari screenshotter on forked PRs

* Update a screenshot

* Ignore *.log in .gitignore
2020-08-04 01:45:10 +09:00
ylemkimon
f97c5454f8 chore: migrate to Yarn 2 (#2316)
* chore: migrate to Yarn 2

* Update config.yml
2020-08-03 18:24:56 +09:00
ylemkimon
591bc7b4be feat(css): use postcss-preset-env (#2313)
* Use postcss-preset-env

Closes #1946.

* Remove CSS prefixes

They are added by autoprefixer, if necessary.
2020-08-03 13:19:09 +09: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
dependabot-preview[bot]
d1ad2e0b8b [Security] Bump codecov from 3.6.5 to 3.7.1 (#2328) 2020-07-21 07:32:46 +00: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
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
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
Kevin Barabash
1da7ef2210 Release v0.11.0 (#2071)
* Release v0.11.0

Bump master to v0.12.0-pre

* update CHANGELOG.md

* minor editors to CHANGELOG.md
2019-08-12 21:51:13 -04:00
Kevin Barabash
151376e8aa Port katex-a11y.js to KaTeX (#2062)
* copy katex-a11y.js from webapp to contrib/to-a11y-string.js

* first pass of updating to-a11y-string to use flow

* Set up test harness and write some tests
- add flow types for jest
- create wallaby config file
- add prettier as a dep and set up .prettierrc so that we use .toMatchInlineSnapshot() and have jest insert the snapshot for us
- add lots of TODOs (I'll create tickets for these later)

* Add some  to get the tests passing for now

* remove commented out parts of wallaby.js config file

* remove some stale strings, fix flow issue, add more coverage

* add , add few more tests, handle middle

* fix minor nits in tests

* rename to-a11y-string to render-a11y-string, updatte webpack config to build extension

* add test for \boxed

* remove commented out code
2019-08-02 11:24:51 -04:00
dependabot-preview[bot]
95d2690322 Bump flow-bin from 0.93.0 to 0.102.0 (#2013)
* Bump flow-bin from 0.93.0 to 0.102.0

Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.93.0 to 0.102.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/compare/v0.93.0...v0.102.0)

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

* Bump flow-bin from 0.93.0 to 0.102.0

Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.93.0 to 0.102.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/compare/v0.93.0...v0.102.0)

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

* fix issue with flow after upgrading
2019-07-13 20:17:19 -04:00
dependabot-preview[bot]
89042d80e3 Bump css-loader from 2.1.0 to 3.0.0 (#2021)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 2.1.0 to 3.0.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v2.1.0...v3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 19:36:24 -04:00
Kevin Barabash
f659544d62 Release v0.10.2 (take 4) (#1961)
* Release v0.10.2

Bump master to v0.10.3-pre

* update CHANGELOG

* add integrity hash to mhchem script in README

* tweaked CHANGELOG
2019-05-12 22:08:30 -04:00
ylemkimon
e016f4b940 Release v0.10.1 (#1856)
* Release v0.10.1

Bump v0.10.1 to v0.10.2-pre

* Update CHANGELOG.md
2019-02-22 13:34:15 +09:00
Kevin Barabash
122c197f51 Fixes #1810: jest problem on windows (#1811)
* Fixes #1810: jest problem on windows

* switch from modulePaths to moduleNameMapper

* Avoid dependency on built dist
2019-02-21 16:15:34 +09:00
ylemkimon
9c05e208ea Upgrade dependencies and remove yarn check (#1851)
* Remove Yarn check

Yarn check is buggy and will be removed in the future

* Upgrade dependencies

* Add --frozen-lockfile to CI
2019-02-20 14:56:06 -05:00
Erik Demaine
647c661db0 Remove double encoding in MathML via Unicode MathML spaces (#1813)
* Remove double encoding in MathML via Unicode MathML spaces

We used to have a complex mechanic for escaping strings, marking them as
`needsEscape = false`, and then not escaping those strings (for
combining strings in `\operatorname`).  But this doesn't really work
with `render`ing directly to a node, as `document.createTextNode` can't
be stopped from escaping.

I've thus removed this mechanic, which required the following changes:

* Switch MathML "smart space" encoding to use Unicode instead of
  `&LongNames;` (which weren't working with `render` for the same reason).
* Hack our HTML/MathML serializer to not use `String.trim`, which wrecks
  havoc with emitted Unicode spaces.

Now `toText()` doesn't escape, so strings concatenate in unescaped form,
and `toHTML()` only does the necessary escaping.  Thus fix #1782.

* Fix src/utils.js

Co-Authored-By: edemaine <edemaine@mit.edu>

* Fix src/mathMLTree.js documentation

Co-Authored-By: edemaine <edemaine@mit.edu>

* Remove trim hack thanks to diffable-html@4.0.0

* Switch back to jest-serializer-html

* Update mathMLTree.js
2019-01-02 01:55:44 +09:00
Kevin Barabash
1a7ce6cf15 update flow to 0.89 (#1808)
* update flow to 0.89

* only use a single core when running tests on circleci
2018-12-26 17:57:28 -05:00
AlbertHilb
f10de9617e Add optional pre-process callback to the auto-renderer. (#1784)
* Add optional pre-process callback to the auto-renderer.

* Rewrite `preProcess` callback signature.

* Add test.

* Make test future-proof.

* Add root folder to the node module paths.
2018-12-23 18:29:59 -05:00
ylemkimon
ce3840d4ce Include only necessary fonts for target environment specified by Browserslist (#1674)
* Include only necessary fonts for target environment specified by Browserslist

Allow WOFF and WOFF2 to be controlled using environment variables

* Fix links

* Fix merge error

* Update dependencies

* Replace uglifyjs-webpack-plugin with terser-webpack-plugin

* Do not set `targets` if !isESMBuild
2018-12-02 17:51:13 -05:00
Ron Kok
64745b5c8a Add mhchem extension (#1436)
* A proposal for support of mhchem

* Create extension

* Add index

* Remove arrow function

* Fix lint errors in macros.js

* Remove mhchem from build

* Move code from macros.js to mhchem.js

* Add minified mhchem

* Remove arrow head mods. Disable eslint.

* Fix space handling

* Update code to mhchem v3.3.0

* Tweak arrows to reduce diff

* Raise \tripledash

* Edit docs and webpack

* Update package.json

* Remove wrap. Remove manual.

* Correct second brush stroke in \xrightleftarrows

* Added patch file

* Add import line

* Add mhchem to eslint ignore
2018-11-24 18:52:25 -05:00
ylemkimon
112582daa5 Replace Khan/KaTeX with KaTeX/KaTeX (#1781)
* Replace Khan/KaTeX with KaTeX/KaTeX

* Remove RawGit links

* Remove old files
2018-11-19 21:24:33 -05:00
ylemkimon
f4e24183d6 fix: pin stylelint to 9.6.0 (#1778) 2018-11-07 19:41:23 -05:00
ylemkimon
f628ca142b Generate ECMAScript module for contrib (#1624)
* Create separate entry point of copy-tex for webpack

* Update katex.webpack.js comment

* Generate ECMAScript for contrib

* Update dependencies

* Comment out documentations
2018-10-31 11:37:54 +09:00
ylemkimon
78f39d171e Add homepage to package.json (#1761) 2018-10-29 22:04:06 +09:00
greenkeeper[bot]
ca38cbf8b2 Update flow-bin to the latest version 🚀 (#1754)
* chore(package): update flow-bin to version 0.84.0

* chore(package): update lockfile yarn.lock

* Update config.yml

* Update config.yml

* Update lockfile
2018-10-29 16:58:23 +09:00
ylemkimon
49f84f76e7 v0.10.0 release (#1751)
* Remove RC-versioned docs

* Release v0.10.0

Bump master to v0.10.1-pre

* Fix multiple occuring hash replacement

* Update SRI hashes

* Update CHANGELOG.md

* Fix tags not shown

* Update docusaurus

* Wrap escaping backslashes with backticks

* Update SRI hashes

* Update CHANGELOG.md
2018-10-29 13:14:24 +09:00
greenkeeper[bot]
de961dedd5 Update eslint-plugin-flowtype to the latest version 🚀 (#1743)
* chore(package): update eslint-plugin-flowtype to version 3.0.0

* chore(package): update lockfile yarn.lock
2018-10-13 20:03:39 -04:00
greenkeeper[bot]
94d433805a chore(package): update eslint-plugin-transform-runtime-aliasing to version 2.0.0 (#1742)
* chore(package): update eslint-plugin-transform-runtime-aliasing to version 2.0.0

* chore(package): update lockfile yarn.lock
2018-10-13 23:49:57 +09:00
greenkeeper[bot]
274dfdae4f Update flow-bin to the latest version 🚀 (#1737)
* chore(package): update flow-bin to version 0.83.0

* chore(package): update lockfile yarn.lock
2018-10-12 22:06:12 -04:00
ylemkimon
5e4c0bec74 chore(package): update babel-eslint to version 10.0.1 (#1729)
* chore(package): update babel-eslint to version 10.0.1

Closes #1728

* chore(package): update lockfile yarn.lock
2018-10-12 21:38:33 -04:00
greenkeeper[bot]
68fdb52733 Update query-string to the latest version 🚀 (#1734)
* chore(package): update query-string to version 6.2.0

* chore(package): update lockfile yarn.lock
2018-10-10 14:00:14 +09:00