Commit Graph

997 Commits

Author SHA1 Message Date
ylemkimon
eab8f24333 Improve supported functions documentation 2 (#1576)
* Move remarkable plugins to website/lib

* Bypass escaped delimiter

* Add redirect page

* Include stylesheet in the documentation for versioning
2018-08-09 21:54:58 +09:00
greenkeeper[bot]
8fb92f6866 chore(package): update postcss-loader to version 3.0.0 (#1572)
* chore(package): update lockfile
2018-08-09 12:58:06 +09:00
Erik Demaine
00a23b682f Test that \neq is in a group (#1574) 2018-08-09 12:37:51 +09:00
ylemkimon
dcaa1399c0 Do not polyfill JSON.stringify (#1563) 2018-08-09 05:22:36 +09:00
ylemkimon
0a6392985c Fix padding on nested inner page navigation (toc) (#1568)
* Use original CSS selector
2018-08-08 15:30:42 -04:00
ylemkimon
429bb56606 Fix scripts (scrollspy) path (#1567) 2018-08-08 11:43:15 -04:00
ylemkimon
ed7ad8d116 Add Extensions to Libraries documentation, dedupe auto-render documentation (#1566)
* Add extensions to libs.md

* Remove documentations from auto-render/README.md

* Add colons
2018-08-08 11:28:45 -04:00
ylemkimon
5ce03c45cf Add link to the demo in navigation bar and README (#1564)
* Add link to the demo in navigation bar

* Add link to the demo in README
2018-08-08 09:32:57 -04:00
greenkeeper[bot]
0b8277c37b chore(package): update style-loader to version 0.22.0 (#1561)
* chore(package): update lockfile
2018-08-08 17:56:00 +09:00
Erik Demaine
05dc9211cc ScrollSpy for table of contents (#1557)
* ScrollSpy for table of contents

* Add reference

* Incorporate comments

* Simplify headingsCache and change ScrollSpy reference

* Add comment

* Fix lint errors

* Switch back to throlling, update comments
2018-08-08 13:22:06 +09:00
ylemkimon
48e6d9d431 index.html: replace font, make responsive (#1547)
* Replace Proxima Nova with Lato

* Make main page responsive (mobile-friendly)

* Make comparison image responsive
2018-08-07 23:26:33 -04:00
Oliver Tacke
02639b424e Add ignore option for class names (#1555)
* Add ignore option for class names

This change adds another option for ignoring nodes for rendering similar to `ignoreTags`.
The new option `ignoreClasses` can hold an array of strings representing class names that should be ignored if they are in a node's class list. This can be desirable in dynamic environments.

* Adhere to CI rules for styling

* Add documentation for new option

* Exchange classList property with IE9 compatible code

* Harmonize variable names

* Add default for ignoredClasses
2018-08-08 09:00:22 +09:00
ylemkimon
69a7634a56 Improve release script & enable versioning documentation (#1521)
* Add version selection page

* Update the CDN urls in the documentation

* Generate new version and publish documentation in release script

* Update CDN urls when NEXT_VERSION is not provided

* Remove bower-related from release script

* Improve instructions running on the release branch 

and without next version

* Add a suffix to the branch name

* Update CSS stylesheet replacement

* Update release.sh

* Change npm to Yarn

* Fix calling `version` script

* Run `prestart` in `version`

* Wrap `Latest Version` descriptions with p tag

* Explicitly specify files to commit in the website
2018-08-08 08:52:28 +09:00
Ron Kok
98dd7fc912 Fix \Large roots (#1485)
* Fix roots

* Update screenshots

* Added a test in a craven gambit to get a green check mark

* Adjust small radicals

* Fix lint error

* Update screenshots
2018-08-08 08:46:04 +09:00
Ron Kok
50c0240349 Support mediawiki (#1558)
* Support mediawiki

* Fix lint error

* Fix link to deprecated syntax

* Change In master to display of functions
2018-08-08 07:49:38 +09:00
Ashish Myles
f3a9bd4b3d Flatten "styling", "text", and "array" ParseNodes. (#1559)
* Flatten "styling" ParseNode.

* Flatten "text" ParseNode.

* Flatten "array" ParseNode.
2018-08-07 14:26:40 +09:00
Ashish Myles
f0b9a344ed Flatten "size" ParseNode and also simplify its uses. (#1554) 2018-08-07 00:31:19 +09:00
Ashish Myles
5b6ffd7b9d Flatten a bunch of non-pervasive ParseNode types (part 2) (#1552)
* Flatten "operatorname" ParseNode.

* Flatten "overline" ParseNode.

* Flatten "raisebox" ParseNode.

* Flatten "rule" ParseNode.

* Flatten "sizing" ParseNode.

* Flatten "smash" ParseNode.

* Flatten "sqrt" ParseNode.

* Flatten "underline" ParseNode.

* Flatten "enclose" ParseNode.

* Flatten "environment" ParseNode.

* Flatten "genfrac" ParseNode.

* Flatten "htmlmathml" ParseNode.

* Flatten "infix" ParseNode.

* Flatten "kern" ParseNode.

* Flatten "lap" ParseNode.

* Flatten "color" ParseNode.
2018-08-06 14:59:44 +09:00
Ashish Myles
1506dc1d88 Flatten a bunch of non-pervasive ParseNode types (part 1) (#1551)
* Flatten "url" ParseNode.

* Flatten "href" ParseNode.

* Flatten "verb" ParseNode.

* Flatten "tag" ParseNode.

* Flatten "cr" ParseNode.

* Flatten "delimsizing" ParseNode.

* Flatten "middle" ParseNode.

* Flatten "leftright" ParseNode.

* Flatten "leftright-right" ParseNode.

* Flatten "mathchoice" ParseNode.

* Remove unused ParseNode type "mod".

* Flatten "mclass" ParseNode.

* Flatten "font" ParseNode.

* Flatten "phantom" ParseNode.

* Flatten "hphantom" ParseNode.

* Flatten "vphantom" ParseNode.
2018-08-06 11:49:43 +09:00
Ron Kok
b2d38104cd Fix \fbox (#1550)
* Fix \fbox

* Fix lint errors

* Change negative space test from \fbox to \boxed
2018-08-04 20:32:06 -07:00
Ron Kok
aef9256419 Fix wide characters (#1549)
* Fix wide characters

* Add phony screenshots

* Try again with screenshotter

* Screenshotter general edit

* Getting closer

* Fix screenshotter test

* Update screenshots
2018-08-05 12:26:20 +09:00
Ron Kok
f28e3c8001 Fix \neq (#1548) 2018-08-04 17:26:43 -04:00
greenkeeper[bot]
ddddd3ad8c chore(package): update flow-bin to version 0.78.0 (#1545) 2018-08-03 21:16:00 -04:00
Ashish Myles
fd6690b988 Flatten ParseNodes: "supsub" and related ("accent", "accentUnder", "horizBrace", "xarrow", "op"). (#1542) 2018-08-03 14:06:02 +09:00
Ron Kok
c7145f0ff0 Alpha sorted function support page (#1536)
* Alpha sorted function support page

* Pick up comments

* Pick up review comments

* Pick up more comments

* Add more links

* Add \pu
2018-08-03 03:11:27 +09:00
Ashish Myles
7e97a382ec Introduce "atom" parse node to coalesce various symbol nodes. (#1541) 2018-08-02 20:46:40 +09:00
Erik Demaine
30be53efe6 Fix \textdaggerdbl (#1539)
Fix #1538 by correcting the symbol mapping for `\textdaggerdbl`
2018-08-02 08:33:39 +09:00
Ashish Myles
0ac4b6e89d Convert ParseNode to struct (#1534)
* Define the nested version of ParseNodes structs explicitly.

Passes test:jest, but fails test:flow.

* Fix additional type errors reported by flow.

* Migrate rebased code from master.

* Rename ParseNode.js to parseNode.js.

* Update defineEnvironment output type to fix the flow errors in environment/array.js.
2018-08-01 15:41:27 +09:00
Erik Demaine
2202aa774f Comments without terminating newlines, \href fixes, \url support (#1529)
* Comments without terminating newlines in nonstrict mode

Fix #1506 by allowing single-line comments (`%` without terminating newline)
in nonstrict mode.  `Lexer` and `MacroExpander` now store the `Settings`
object, so the `Lexer` can complain about missing newline according to the
`strict` setting.  I filtered this out from the snapshot tests with a slightly
different `replacer`.

* Reimplement \href like \verb, add \url

Major restructuring to lex URL arguments differently, e.g. to support
`\href%{hello}` and `\href{http://foo.com/#test%}{hello}`.  The new URL
parsing code is simpler, but involves a special case in `parseSymbol`
like `\verb`.

Also add support for `\url` while we're here.

* Cleanup

* Fix flow errors and improve error messages

* Add \url to documentation

* Improve doc formatting
2018-07-31 14:13:30 -04:00
Ron Kok
b73e43832b Improve Unicode docs (#1533)
* Improve Unicode docs

* Edit table
2018-08-01 01:43:55 +09:00
Erik Demaine
41892af1a3 Typo in \hspace*, cleanup TeX commands (#1532) 2018-07-30 17:15:31 -07:00
ylemkimon
c06b36cb6a Replace yarn run and yarn install with yarn, remove building with npm instructions (#1528)
* Replace `yarn run` with `yarn`

* Replace `yarn install` with `yarn`

* Remove building using `npm` from node.md
2018-07-30 14:31:25 +09:00
Erik Demaine
c88fa70a62 Small tweaks to documentation (#1527) 2018-07-30 12:25:38 +09:00
ylemkimon
a76c4b9a2f Switch npm to Yarn (#1522)
* Add testUrl to jest config

* Switch npm to Yarn
2018-07-29 11:36:27 -07:00
ylemkimon
702b3c807f Add Building from Source & update Security documentation (#1516)
* Add `Building from Source` documentation

* Update security.md documentation

* Fix grammars
2018-07-30 03:18:44 +09:00
ylemkimon
e97a23ec6d Set baseUrl depending on the environment (#1526) 2018-07-29 11:04:32 -07:00
ylemkimon
cd80db5ded Fix docUrl and pageUrl in the Footer & image path (#1514)
* Fix docUrl and pageUrl in the Footer

* Fix katex-comparison.gif path

* Fix typo in the url to `supported`
2018-07-29 13:40:10 -04:00
ylemkimon
edede0867d Add codecov as devDependencies (#1524)
* Add codecov as devDependencies

* Update CI commands
2018-07-30 02:15:25 +09:00
ylemkimon
2136c9670c Remove .travis.yml and related (#1523) 2018-07-29 13:07:40 -04:00
ylemkimon
20c9440318 Add markdown-help command and auto-generate CLI documentation (#1518)
* Add `markdown-help` command and update CLI documentation

* Auto-generate cli.md before start, build, and publish

* Update cli.md.template
2018-07-30 01:44:43 +09:00
ylemkimon
c1b6668cf0 Improve README.md (#1515)
* Fix KaTeX logo

* Add npm badge

* Change CircleCI badge

* Remove redundant links

* Remove unnecessary details

* Add a link to auto-render extension

* Add a link to the list of supported commands

* Add a section about auto-render extension

* Update README.md
2018-07-29 12:26:41 -04:00
Ron Kok
3cce293a02 Add size graphic to function support page, fix vertical alignment (#1517)
* Add size graphic to supported

* Add indents

* Fix environment vertical alignment
2018-07-29 02:43:15 +09:00
ylemkimon
db2aecce24 Lint website (#1519)
* Lint website

* Add comment to empty_thead.js
2018-07-28 10:49:36 -04:00
ylemkimon
4114288403 Improve supported functions documentation (#1511)
* Remove empty lower right cells

* Escape backticks(`) using <code></code>

* Escape vertical bars(|) using <code> and HTML entity code

* Normalize documentation links

* Remove empty thead
2018-07-27 18:23:49 -07:00
ylemkimon
8a38035855 KaTeX website & documentation (#1484)
* website/docs: initial commit

* Change secondaryColor

* Fix index.css not being copied and included on global stylesheet

* Fix stylesheet link

[skip ci]

* Change documentation link to API(Usage)

[skip ci]

* Add `Libraries` in usage

[skip ci]

* Remove documentation from `README.md` and add link to the site

[skip ci]

* Use KaTeX in the parent directory to build Markdown

[skip ci]

* Revise function support page. Avoid error msgs.

* General edit to function support page
2018-07-26 20:19:40 -07:00
ylemkimon
83e8eac0a5 Add test job to CircleCI (#1235)
* Do not compile contrib when running screenshotter

* Add test job to CircleCI

* Update config.yml

* Fail if PR exists but running on the forked repo

* Update Screenshotter README.md

* Store artifact at the root

* Add CircleCI badge

* Add `codecov` to CircleCI

* Change build directory to `dist`
2018-07-26 18:50:51 -07:00
Erik Demaine
e454eb3b3e Screenshotter chdir to KaTeX root directory (#1502)
* Screenshotter chdir to KaTeX root directory

Fix #1501.  This seems to be required for webpack, specifically
`babel-plugin-version-inline`, to run correctly.

* lint fix
2018-07-25 03:32:01 +09:00
Erik Demaine
9fe5e221e5 Switch from nomnom to commander (#1496)
* Switch from nomnom to commander

* Fix #1489
* --macro repeatable option replaced with single --macros option with ";"
  separator (until https://github.com/tj/commander.js/issues/674)
* Add missing --max-expand option
* Replace expired --unicode-text-in-math-mode option with --strict
  (https://github.com/Khan/KaTeX/issues/1483#issuecomment-405108291)
* Add instructions for how to run in the opening comments
* Clean up option doc strings

* Implement @ylemkimon's comments

* Fix try/const bug

* Fix use of --selenium-ip

It was a quirk that --seleniumIP worked.  --help lists --selenium-ip.

* Implement comments, restore --macro repeatable argument

* Cleanup

* Restore 0 default for maxExpand

* Fix more comments from @ylemkimon

* npm run dist -> npm run build

In preparation for #1500

* Fix line length error
2018-07-23 13:16:45 -04:00
Erik Demaine
cbd3afd738 Fix \not vertical alignment (#1497)
* Fix \not vertical alignment

Fix #1491 by changing from `position: absolute` to `position: relative`.

* Switch to \rlap implementation of \not

* Separate \not the macro from \not the symbol via \@not

* Fix test
2018-07-24 02:01:02 +09:00
ylemkimon
237986a7ca Change build directory to dist and cleanup NPM scripts (#1500)
* Move the build path to `dist`

* mkdir dist if not exists

* Remove build from .gitignore

* Delete `dist/` before building and when cleaning
2018-07-23 12:46:15 -04:00