Commit Graph

3365 Commits

Author SHA1 Message Date
Davide P. Cervone
3737c8d84b Merge branch 'preview-disable' into develop 2015-12-11 16:14:37 -05:00
Davide P. Cervone
0b00aceae2 Merge branch 'issue1235' into develop. Issue #1235. 2015-12-11 16:14:16 -05:00
Davide P. Cervone
e78c9d4ccb Merge pull request #1333 from mathjax/issue1328
improve npm workflows
2015-12-11 14:22:23 -05:00
Davide P. Cervone
bfcb0e94b5 Recompute the bounding box for an mrow with stretchable embellished operators that didn't actually stretch. Resolves issue #1332. 2015-12-11 11:53:53 -05:00
Peter Krautzberger
1eb5682885 package.json: consistent keyword capitalization 2015-12-10 16:57:43 +01:00
Peter Krautzberger
310bfbac0b package.json: add keywords to mark as browser-only 2015-12-10 16:54:32 +01:00
Davide P. Cervone
5973694116 Make a flag for output jax to control fast preview (so we don't have to maintain a blakc-list here). 2015-12-09 16:26:41 -05:00
Davide P. Cervone
7342aebe66 Allow page to enable/disable previews via API calls (for use with editor previews, for example). 2015-12-09 16:16:45 -05:00
Davide P. Cervone
e894193e51 Move location of assistive MathML to be more closely related to the position of the typeset math. Issue #1235. 2015-12-08 19:02:37 -05:00
Davide P. Cervone
d776874898 Merge branch 'issue1280' into develop. Issue #1280. 2015-12-08 18:07:36 -05:00
Davide P. Cervone
e3a2603361 Merge branch 'issue1312' into develop. Issue #1312. 2015-12-08 18:06:50 -05:00
Davide P. Cervone
f60da6ff0e Merge pull request #1322 from mathjax/issue1235
Update AssistiveMML
2015-12-08 18:03:47 -05:00
Peter Krautzberger
65c72a10f3 add package.json and .npmignore to improve npm workflows; fixes #1328 2015-12-08 17:19:50 +01:00
Peter Krautzberger
040ddd652c plainTeX output jax: check MathML input for TeX and asciimath annotation and use it. 2015-12-08 11:15:55 +01:00
Davide P. Cervone
a729427ca6 Remove debugging log messages. 2015-12-06 11:02:27 -05:00
Davide P. Cervone
58d698f355 More improvements to function-apply with operators. Issue #1312 2015-12-06 08:16:25 -05:00
Davide P. Cervone
21dd8a4b46 Make sure main container element gets width set when using right margin for negative size 2015-12-06 07:49:24 -05:00
Davide P. Cervone
757660863f Handle boxes with negative widths in CHTML. Resolves issue #1280 2015-12-05 18:43:31 -05:00
Davide P. Cervone
b231a0537c Merge branch 'issue1326' into develop. Issue #1326. 2015-12-05 13:45:29 -05:00
Kevin Barabash
9ad50178f1 Merge pull request #405 from Khan/eslint
Migrate to eslint
2015-12-04 17:42:06 -08:00
Davide P. Cervone
a911742bd2 Merge branch 'issue1324' into develop. Issue #1324. 2015-12-04 14:37:47 -05:00
Davide P. Cervone
e47e221afa Merge branch 'issue1312' into develop. Issue #1312. 2015-12-04 14:37:32 -05:00
Davide P. Cervone
eb6f1c0123 Merge branch 'issue1323' into develop. Issue #1323. 2015-12-04 14:37:15 -05:00
Davide P. Cervone
80125f99f1 Merge branch 'issue1316' into develop. Issue #1316. 2015-12-04 14:36:49 -05:00
Davide P. Cervone
3ff16901e6 Undo change in \underline (remove accent=false) since this produces poor results. Issue #1255. 2015-12-04 10:31:51 -05:00
Davide P. Cervone
206dc7f490 Make horizontal stretchy characters use multiple extenders rather than CSS transform. Issue #1326 2015-12-04 10:28:54 -05:00
Davide P. Cervone
49003fe4ac Fix vertical stretchy characters to use multiple extenders rather than CSS transform. Issue #1326 2015-12-03 11:49:55 -05:00
Davide P. Cervone
0e4b3f05e2 Make scaling basd on a list rather than hard-coded if-then statements. Issue #1324 2015-12-03 08:11:39 -05:00
Davide P. Cervone
1c938cc48e Add CommonHTML to the 'Scale All Math' list. Issue #1324. 2015-12-03 08:02:08 -05:00
Davide P. Cervone
458cd7a760 Improve heuristics for adding function-apply following operators. Issue #1312. 2015-12-03 07:43:00 -05:00
Davide P. Cervone
6a7ac1740f Copy empty Presentation MathML elements verbatim rather than inserting <mi> with the name of the element, as neede for Content MathML. Resolves issue #1323. 2015-12-02 15:21:24 -05:00
Davide P. Cervone
2307a753b2 Fix problem with mtext losing initial spacing when the mtext containe only one printable character. Issue #1316. 2015-12-02 14:58:53 -05:00
Davide P. Cervone
3cdcd73b01 Merge branch 'issue1295' into develop. Issue #1295. 2015-12-02 11:19:58 -05:00
Davide P. Cervone
aa21c9fedd Merge branch 'issue1287' into develop. Issue #1287. 2015-12-02 11:19:08 -05:00
Davide P. Cervone
4246f20ed4 Merge branch 'issue1255' into develop. Issue #1255. 2015-12-02 11:17:33 -05:00
Kevin Barabash
14a58adb90 Migrate to eslint
Summary
We'd like contributors to use the same linter and lint rules that we use
internally.  This diff swaps out eslint for jshint and fixes all lint failures
except for the max-len failures in the test suites.

Test Plan:
- ka-lint src
- make lint
- make test

Reviewers: emily
2015-12-01 10:02:08 -08:00
Kevin Barabash
1a082e81d9 Merge pull request #406 from gagern/ffEmptyPage
Force Firefox to start up with an empty page
2015-12-01 08:17:47 -08:00
Martin von Gagern
0a53a775e8 Force Firefox to start up with an empty page
Otherwise it could happen that some Mozilla page gets shown which has a
minimal size larger than the 786px we're requesting.  And the screenshot
will span that entire page even if the window is smaller, resulting in a
failure to adjust screenshot size.

See http://kb.mozillazine.org/Browser.startup.homepage_override.mstone
and http://kb.mozillazine.org/Browser.startup.page for details.

Just in case, we also include the docker image digests in the travis build
log, to increase chances of reproducing what we get there.
2015-12-01 14:15:45 +01:00
Kevin Barabash
7cdb08bf7e Merge pull request #388 from gagern/updateSelenium
Update Selenium Docker images from 2.46.0 to 2.48.2
2015-11-30 21:19:29 -08:00
Peter Krautzberger
21a10de3eb Update AssistiveMML
Add `role=presentation` to root element and parent of the plain MathML

Fixes #1235
2015-11-30 21:34:16 +01:00
Kevin Barabash
3a15a8402f Merge pull request #398 from gagern/aligned
Introduce an aligned environment
2015-11-28 11:20:04 -08:00
Peter Krautzberger
ae99be9f67 Merge pull request #1299 from physikerwelt/patch-2
[mediawiki-texvc.js] Add missing symbols from upstream texvc
2015-11-25 15:31:25 +01:00
Martin von Gagern
8201501d77 Introduce an aligned environment
This is almost like the align* environment, but it starts out in math mode,
so we don't have to worry about the fact that we have no real surrounding
text mode in KaTeX.  This is the first step towards align* and align.
2015-11-23 20:22:06 +01:00
Kevin Barabash
b9c4237ac2 Merge pull request #386 from gagern/nextToken
Avoid re-lexing, move position to internal state
2015-11-23 08:55:11 -08:00
Martin von Gagern
4debcb34af Avoid re-lexing, move position to internal state
Instead of passing around the current position as an argument, we now have a
parser property called pos to keep track of that.  Instead of repeatedly
re-lexing at the current position we now have a property called nextToken
which contains the token beginning at the current position.  We may need to
re-lex if we switch mode.  Since the position is kept in the parser state,
we don't need to return it from parsing methods, which obsoletes the
ParseResult class.
2015-11-23 17:40:56 +01:00
Kevin Barabash
5f275aa9c1 Merge pull request #385 from gagern/testErrors
Added unit tests for error messages
2015-11-21 08:54:50 -08:00
Martin von Gagern
e7195601e1 Added unit tests for error messages
This is an attempt to actually exercise all the code paths which can lead to
a ParserError exception (from malformed user input, without tinkering with
any KaTeX internals or exploiting a KaTeX bug).  It documents the current
state of affairs, without changing any error messages.  Comments indicate
future work, particularly with respect to the position often associated with
these error messages.
2015-11-21 15:38:26 +01:00
Kevin Barabash
4617f191e3 Merge pull request #389 from gagern/jasmine
Drop local copy of jasmine, multiple spec files in browser tests
2015-11-20 13:49:37 -08:00
Peter Krautzberger
b28461f032 plainsource outpt: first commit 2015-11-18 13:47:36 +01:00
Martin von Gagern
cc17f36edc Drop local copy of jasmine, multiple spec files in browser tests
Instead of having our own copy of jasmine in the repository, we use
jasmine-core as an npm dependency and load it from there.  That reduces the
size of the repository and helps keeping up to date.  We're not using the
transitive dependency on jasmine-core via jasmine, since the jasmine package
might change its dependency any day (although unlikely).

The katex-spec.js shipped from the server now includes all
`test/*[Ss]pec.js` (as matched via glob) so that additional spec files can
be created and will automatically get included in the browser-side test
suite.  The contrib specs are not included at this point.

Visit http://0.0.0.0:7936/test/test.html while running server.js to see this
in action and verify the lack of failures.
2015-11-12 18:34:31 +01:00