Commit Graph

1095 Commits

Author SHA1 Message Date
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
1d79483291 Use reusable executors (#1763) 2018-10-29 15:23:10 -04: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
bf98931e2d Add namu.wiki to KaTeX users (#1760)
* Add namuwiki logo

* Update siteConfig.js
2018-10-29 01:16:55 -04:00
ylemkimon
354b4badda Fix documentation CORS error (#1759)
* Fix CORS error

* Fix CORS error

* Add CORS attribute
2018-10-29 13:42:45 +09:00
ylemkimon
a3215b284e Refactor buildExpression to depth-first traverse groups (nodes), fix spacings and \begingroup...\endgroup (#1706)
* Refactor `buildExpression` to depth-first traverse groups (nodes)

* Fix \begingroup...\endgroup

* Rename traverseNodes to traverseNonSpaceNodes, update comments and tests

* Update Parser.js

* Update katex-spec.js.snap
2018-10-29 00:31:00 -04:00
Ron Kok
5f3ab13d02 Support blackboard bold in text mode (#1757) 2018-10-29 00:24:44 -04: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
ylemkimon
11490b5e0b Allow screenshotter to be run on IE, Edge, Safari and remote, e.g., BrowserStack (#1661)
* Allow screenshotter on IE, Edge, and Safari

* Set Firefox options only on Firefox

* Add --selenium-capabilities option to support setting capabilities

* Quit web driver after test finishes

* Upgrade to style-loader 0.22.1 for IE compatability
2018-10-28 17:34:17 +09:00
Nathan Clonts
6a06470e99 Website custom 404 page (#1748)
* initial 404 page

* improve styles

* update formula & alignment on 404 page

* attempt to redirect all bad URLs to 404 page

* try 301 to force redirect to 404.html

* try loading static resources with absolute path

* fix some absolute paths

* style & content improvements

* reduce equation font size for really narrow screens

* revert changes (?) to browserslistrc

* Update website/static/static/404.css

Co-Authored-By: kokopelli314 <nacclonts@Gmail.com>

* Update website/static/static/404.css

Co-Authored-By: kokopelli314 <nacclonts@Gmail.com>

* Update website/static/static/404.css

Co-Authored-By: kokopelli314 <nacclonts@Gmail.com>
2018-10-24 22:17:35 -04:00
ylemkimon
4dd0e2cdca Add \> (#1752)
* Add \>

* Update snapshot
2018-10-24 22:04:00 -04:00
Ron Kok
0b7b4db7fc Support Unicode double square brackets (#1750) 2018-10-24 15:57:36 +09:00
AlbertHilb
89bb371152 Add support for \lparen and \rparen delimiters. (#1741)
* Add support for `\lparen` and `\rparen` delimiters.

* Add missing math delimiter. Fix alphabetic order.

* Add test.

* Add spaces between parenthesis and square brackets.
2018-10-15 21:05:10 -04: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
ylemkimon
0bc31f1822 Refactor Parser (#1723)
* Move unsupported command (undefined control sequence) error to parseSymbol

* Change parseGivenFunction and parseFunction to parse only function

* Move \begin handling to environment.js

* Remove ParsedFunc/Arg, move logics into parseGroup

* Fix flow error

* Remove parseFunction, rename parseGivenFunction to parseFunction

* Minor fixes

* Remove previously resolved TODO

* Minor fixes

* Update flow typing
2018-10-14 00:58:13 +09: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
ylemkimon
a51dc4b072 Wrap document fragment where classes, attributes, or styles are applied (#1707)
* Wrap document fragment group where classes or styles are applied

* Wrap non-math node where attributes are applied in \href
2018-10-12 22:26:13 -04:00
Erik Demaine
3514d48856 cli's default maxSize should be Infinity, not 0 (#1739)
Fix #1738
2018-10-12 22:18:01 -04: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
ylemkimon
3907545e2c Add raw string group, move comment parsing to Parser, change URL group parser (#1711)
* Add raw string group

* Move comment parsing to Parser

* Use raw string group in URL group parser

* Update types.js

* Add multi-level nested url test
2018-10-12 21:21:57 -04:00
ylemkimon
ba8e224b8d Fix \mathit font and italic correction and add \mathnormal (#1700)
* Fix \mathit font (Math-Italic -> Main-Italic) and italic correction

* Rename mathit to mathdefault and mainit to mathit

* Add \mathnormal
2018-10-10 17:18:07 +09: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
greenkeeper[bot]
0cbfaef32d Update flow-bin to the latest version 🚀 (#1733)
* chore(package): update flow-bin to version 0.82.0

* chore(package): update lockfile yarn.lock
2018-10-02 11:04:42 +09:00
Ryan Randall
9733040602 Updating lib docs (#1727) 2018-09-28 16:57:56 +09:00
Erik Demaine
faa0c7e3fe Fix tag positioning to live within katex-html parent (#1721)
* Fix tag positioning to live within katex-html parent

`.tag` has `position: absolute`, but this positions it relative to the nearest
parent with a non-static `position` (see
https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block).
This PR makes `.katex-display > .katex > .katex-html` that parent.

* Update screenshots
2018-09-20 21:30:12 +09:00
greenkeeper[bot]
c52d3bee70 Update rollup to the latest version 🚀 (#1716)
* chore(package): update rollup to version 0.66.0

* chore(package): update lockfile yarn.lock
2018-09-16 17:48:47 +09:00
greenkeeper[bot]
6151907ecb Update uglifyjs-webpack-plugin to the latest version 🚀 (#1714)
* chore(package): update uglifyjs-webpack-plugin to version 2.0.0

* chore(package): update lockfile yarn.lock
2018-09-16 15:23:33 +09:00
greenkeeper[bot]
db5d75db07 Update flow-bin to the latest version 🚀 (#1715)
* chore(package): update flow-bin to version 0.81.0

* chore(package): update lockfile yarn.lock
2018-09-16 00:37:40 +09:00
ylemkimon
1cf3cd6fe5 Remove greenkeeper-lockfile (#1710) 2018-09-12 22:01:30 +09:00
greenkeeper[bot]
91553c1dfe Update webpack-bundle-analyzer to the latest version 🚀 (#1709)
* chore(package): update webpack-bundle-analyzer to version 3.0.0

* chore(package): update lockfile

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-09-11 23:47:55 -04:00
Brian Leung
f71f469d4b Remove duplicate defineFunction invocation for \mathop. (#1701) 2018-09-05 23:43:23 -04:00
ylemkimon
7f7d063e73 chore(package): update file-loader to version 2.0.0 (#1697) 2018-09-04 21:55:46 -04:00
greenkeeper[bot]
a88310e51d chore(package): update style-loader to version 0.23.0 (#1668)
* chore(package): update style-loader to version 0.23.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-09-04 09:06:52 +09:00
ylemkimon
49017ad36b Improve & fix CircleCI scripts (#1658)
* Improve CircleCI scripts

* Upgrade to [CircleCI 2.1 
configuration](https://github.com/CircleCI-Public/config-preview-sdk)
  * Use reusable commands and jobs with parameters, instead of aliases
* Upgrade Yarn before installing dependencies, if needed: fixes issue 
#1648, which is caused by yarnpkg/yarn#5723
* Skip Flow, Jest, and coverage report upload if only website and 
documentation are changed: fixes #1655
* Add Codecov flags: https://docs.codecov.io/docs/flags
* Set CIRCLE_PREVIOUS_BUILD_NUM empty before running 
greenkeeper-lockfile: it detects the correct build by checking it's the 
first job of the first workflow. As we run jobs parallel, the correct 
build may not be the first job.
* Remove CircleCI build artifacts for now: it's highly unlikely we'll 
use them
* Add comments for #1590 workaround

* Update name

* Fix command operator precedence

* Remove workflow version
2018-09-03 19:54:10 -04:00
ylemkimon
c8f8ebd880 Use local built KaTeX on the main page for local and Netlify deploy preview (#1631)
* Use local built KaTeX on the main page for local and netlify builds

* Use KaTeX from CDN on Netlify production deploy
2018-09-04 07:25:29 +09:00
Kevin Barabash
48e5a26ee9 extract makeVerb and some spacing functions from buildCommon (#1640)
* extract makeVerb and some spacing functions from buildCommon

* fix case sensitivity issue

* move function definitions before their use
2018-09-03 18:10:46 -04:00
ylemkimon
ddc287e551 Enable Algolia Docsearch (#1688) 2018-09-04 06:58:28 +09:00
ylemkimon
4178639ea5 Upgrade to Babel 7 (#1595)
* Upgrade to Babel 7

* Update dependencies

* Remove `modules` and `useEsModules` as module support is automatically detected

Target browsers supporting ESM in the ESM build.

* Disable corejs aliasing (polyfill)

* Fix package.json and update lockfile

* Bump CircleCI cache version

* Remove `Object.values()` use for Node 6 compatability

* Remove redundant arguments to @babel/register

* Update rollup and rollup-plugin-babel

* Add ignore option to no-transform-runtime-aliasing

Ignore JSON.stringify, parseInt, and ParseFloat

* Upgrade babel-loader to 8.0.1

* Use api.env() in Babel configuration

* Upgrade babel-loader to 8.0.2
2018-09-03 17:19:12 -04:00
Brian Leung
010dc88029 Add Flow types to CssStyle. (#1684) 2018-09-02 23:53:22 -04:00
ylemkimon
06cdea9410 Update bower.json (#1694) 2018-09-02 23:33:15 +09:00
ylemkimon
761c52f99b Move to Netlify (#1683)
* Remove GitHub Pages publish script

* Redirect katex.netlify.com to katex.org

* Redirect function-support using _redirects

* Redirect docs to the first documentation and docs/en/ to docs/

* Include HSTS includeSubDomains and preload directive

* Cache static image assets
2018-09-02 20:06:39 +09:00
Sumit Gupta
9a6f31abcc Added correct hash for katex.min.css (#1692)
* Added correct hash

* Correct hash for versioned doc
2018-09-02 13:34:15 +09:00
ylemkimon
6f0a76c3a5 Enable Greenkeeper on website/package.json (#1687) 2018-09-01 14:05:32 -04:00
Ron Kok
9b7e10e4f7 Allow 6-digit color spec w/o # (#1690)
* Allow 6-digit color spec w/o #

* Improve RegEx pattern

* Pick up comment

* fix lint
2018-09-01 13:27:17 -04:00
ccorn
d3ec100d02 dist script packs release tarball/zip with "katex" directory prefix again. (#1665)
It does so by mercilessly removing the katex/ folder, if it exists
(presumably left by previous failed dist:zip attempts), copying dist/
to katex/, and archiving the latter. On success, katex/ gets removed.

Settled on this version after a more sophisticated script was considered
to use too much POSIX features (like set and trap) in #1665.

Deliberately not adding katex/ to .gitignore because if katex/ shows up,
it indicates that the latest dist attempt has not completed successfully.
2018-09-01 13:54:31 +09:00
greenkeeper[bot]
5585187abb Update flow-bin to the latest version 🚀 (#1689)
* chore(package): update flow-bin to version 0.80.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-09-01 11:10:02 +09:00
ylemkimon
89daa02fd8 Move to katex.org (#1680)
* Change links to katex.org

* Change http to https

* Remove baseUrl hacks

* Fix OpenGraph image link

* Fix KaTeX path update script
2018-08-31 04:08:02 -04:00
ylemkimon
cd8e6e0de6 Add browserslist (#1662) 2018-08-29 00:52:52 +09:00