Erik Demaine
1c2d9d4a48
Fix link between support pages ( #1854 )
...
Fix #1853 by removing `./` in URLs which Docusaurus doesn't translate.
2019-02-21 16:08:22 +09:00
Erik Demaine
ee16854612
Fix \not and \neq on Chrome via new Unicode symbol U+E020 ( #1852 )
...
* Fix \not and \neq via new Unicode symbol U+E020
Fix #1842
* Fix font metrics
* Update screenshots
* Use lower case letters in code points
2019-02-21 16:06:29 +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
23958337a2
\fbox inherits default color ( #1847 )
...
Merge `.fbox` and `.fcolorbox` rules to inherit default color, instead
of forcing `black`. We no longer have any explicit `black` in CSS.
Fix #1772 .
2019-02-09 18:10:35 -05:00
Erik Demaine
7f778d1543
leqno and fleqn support ( #1814 )
...
* leqno support
* Add fleqn support
* Add tests
* Lint fix
* Add leqno and fleqn to website demo
2019-01-29 18:40:17 +09:00
Erik Demaine
58c36c6fdf
Add \textbackslash and \textasciicircum ( #1839 )
...
* Add \textbackslash and \textasciicircum
Fix #1838
* lint fix
* Add documentation
2019-01-27 12:02:47 -08:00
Ron Kok
2cd37ae7c3
Fix Unicode bigcup ( #1836 )
2019-01-20 12:38:14 -05:00
varkor
062a28f35a
Fix invalid UTF-8 in mhchem/README.md ( #1833 )
...
* Fix invalid UTF-8 in mhchem/README.md
* Fix apostrophes in README.md
2019-01-13 11:21:50 -05:00
Jake
4847e40ab6
Add vue-katex to 3rd party libraries ( #1823 )
2019-01-13 10:24:54 -05:00
René Filip
9ddc24c9f1
add \argmax and \argmin ( #1820 )
...
* add \argmax and \argmin
* add reference to argmin and argmax
2019-01-12 18:36:36 -05:00
Ron Kok
e85cb97cca
Fix \genfrac w/empty delimiter arguments ( #1816 )
2019-01-02 02:13:54 +09: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
Ron Kok
f5234a2f01
Fix \hphantom width ( #1809 )
...
* Fix \hphantom width
* Spin up phony screenshot test
* Make better choice of smash screenshot test
* Real screenshotter test
* Add strict mode
* Fix lint error
* useStrictBehavior
* Revert to previous strict setting
* useStrictBehavior "phantomSpacing"
* Fix tests via nonstrictSettings
* Fix documentation
* Remove bin|rel
2019-01-02 01:49:23 +09:00
Erik Demaine
8346294bf3
Fix \\ and \newline after operator ( #1796 )
...
* Fix \\ and \newline after operator
Fix #1790 . `\\` and `\newline` render as a span with classes
`mspace` and `newline`. We need to check for `newline` when bringing
spaces into the same `base` group.
* Add tests and comment
2018-12-26 18:17:30 -05: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
Ron Kok
d604965c62
Allow \includegraphics to omit the optional argument ( #1807 )
...
* Allow \includegraphics to omit the optional argument
* Fix lint error
2018-12-23 18:52:30 -05:00
ylemkimon
45a58f8d30
Update lockfile, fix test reporting, throwOnError on yarn start
test page ( #1798 )
...
* Update lockfile
* Fix test reporting
* Set throwOnError on `yarn start` test page
2018-12-23 18:46:25 -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
3dfd17d9b4
Add catcode to Lexer, move comment parsing back to Lexer ( #1789 )
...
* Remove redundant consumeSpaces()
- Spaces after command sequence are ignored in Lexer
- parseExpression consumes spaces in the math mode
* Add catcode to Lexer, move comment parsing back to Lexer
- Fix parsing a comment before a sup/subscript argument
- Fix parsing a comment before an expression
- Fix parsing a comment before or between \hline
- Fix parsing a comment in the macro definition
- Fix parsing a comment including a command sequence
* Update Lexer.js
* Update Parser.js
* catcode -> catcodes
2018-11-24 18:42:14 -05:00
ylemkimon
ec6a2b4f36
Remove Supported Functions onPageNav style ( #1767 )
...
* Remove Supported Functions onPageNav style
* Remove Supported Functions onPageNav style
2018-11-21 14:16:25 +09: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
cda184bea4
Add documentation regarding importing the module ( #1768 )
2018-11-06 00:37:44 +09:00
Ron Kok
f713f324bd
Support \includegraphics ( #1620 )
...
* Support \includegraphics
* Update screenshots
* Fix lint errors
* Fix more lint errors
* Fix lint errors take 3
* Add documentation, error messages
* Improve CSS
* Update domTree to coordinate with PR #1633
* Update screenshots
* fix flow errors
* Use same RegEx as href
* Fix lint error
* Accept raw ArgType
* Fix lint error
* fix flow error
* Add test
2018-11-01 18:43:41 -04: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
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