Commit Graph

3017 Commits

Author SHA1 Message Date
Davide P. Cervone
c5b61d4f32 Make sure we test only control sequences at the END of the parameter. 2016-07-28 07:28:00 -04:00
Davide P. Cervone
83387dd3f1 Treat control sequences as a unit when matching a macro template. Resolves both issues for #1568. 2016-07-28 07:23:42 -04:00
Davide P. Cervone
38a9a12dcf Adjust how options are handled, as per Volker's comments. 2016-07-26 14:59:41 -04:00
Davide P. Cervone
1d2df8cc68 Merge pull request #1546 from dpvc/issue1544
Add stretchy data for U+20D7.  #1544
2016-07-26 14:56:16 -04:00
Davide P. Cervone
fbed4bd61d Merge develop into issue1544 2016-07-26 14:54:46 -04:00
Davide P. Cervone
4db3f74d38 Merge pull request #1565 from dpvc/issue1563
Fix problems with defining \  (control-space).  #1563 and #1564
2016-07-23 16:07:05 -04:00
Davide P. Cervone
f5e818cc21 Merge pull request #1552 from dpvc/issue1022
Handle hrefs during line breaking.  #1022
2016-07-23 15:59:56 -04:00
Davide P. Cervone
62737984e8 Merge pull request #1551 from dpvc/issue1087
Allow <wbr> in TeX code (just like <br>).  #1087
2016-07-23 15:57:34 -04:00
Davide P. Cervone
0940fcea09 Merge pull request #1549 from dpvc/issue1548
Fix determination of line-breaing parent element. #1548.
2016-07-23 15:53:41 -04:00
Davide P. Cervone
d26341c5c3 Merge pull request #1533 from dpvc/issue1532
Use a new approach to aligning labels with their table rows.  #1532
2016-07-23 15:47:56 -04:00
Davide P. Cervone
119f050dd3 Merge pull request #1526 from dpvc/issue989
Make minus in <mn> produce U+2212 rather than U+002D.  #989
2016-07-23 15:45:43 -04:00
Davide P. Cervone
0037d6b6df Make \def, \let, and \newcommand handle '\ ' properly. Make \let set a control sequence to an undefined control sequence. Resolves issues #1563 and #1564. 2016-07-21 15:37:14 -04:00
Davide P. Cervone
edc2618568 Don't use getComputedStyle() if it is not available (fake styles). 2016-07-12 11:50:51 -04:00
Davide P. Cervone
4817368010 Use getBoundingClientRect() to improve handling of menu placement when the body is scrolled or has margin settings. Resolves issue #1434. 2016-07-11 19:56:00 -04:00
Davide P. Cervone
fc91998d79 Merge branch 'issue1364' into develop. Issue #1364. 2016-07-11 10:14:07 -04:00
Davide P. Cervone
898f3717a4 Fix typo in commit 3ee5ca3. Resolves issue #1363 for CommonHTML 2016-07-11 10:12:06 -04:00
Davide P. Cervone
f9dbe8b07d Merge pull request #1542 from dpvc/issue1541
Fix problems with stretching <mover> in <mtd> elements.  #1541
2016-07-08 09:14:14 -04:00
Davide P. Cervone
e75d86950f Merge pull request #1538 from dpvc/issue1364
Don't let preview width interfere with the determination of the container width. #1364
2016-07-08 09:13:01 -04:00
Davide P. Cervone
23af855cf5 Merge pull request #1534 from dpvc/full-width-fix
Make sure CHTML output stays a table-cell when focused.
2016-07-08 09:11:55 -04:00
Davide P. Cervone
4f87ff1b87 Merge pull request #1530 from dpvc/issue1478
Fix problem with Safari inserting line breaks before in-line math. #1478
2016-07-08 08:58:37 -04:00
Davide P. Cervone
4120eb146c Merge pull request #1529 from dpvc/font-fixes
Font fixes
2016-07-08 08:54:28 -04:00
Davide P. Cervone
0c52c281c9 Merge pull request #1525 from dpvc/issue1403
Allow MathJax root to be configured.  #1403
2016-07-08 08:37:24 -04:00
Davide P. Cervone
081ff8dfac Add filtering for padding in \bbox. Resolves issue #1183 2016-07-07 15:31:01 -04:00
Davide P. Cervone
6c7f18a72f Add filtering for lengths for padding/margin/border/outline/font-size, and handle things like padding-top, etc. Resolves issue #1182 2016-07-07 15:09:30 -04:00
Davide P. Cervone
153387d689 Merge pull request #1514 from dpvc/issue1415
Don't unwrap mrow when created fenced elements.  #1415
2016-07-06 14:21:24 -04:00
Davide P. Cervone
189239a9eb Fix conflicts with develop. 2016-07-06 14:20:49 -04:00
Davide P. Cervone
dd32c56008 Merge pull request #1524 from dpvc/issue1445
Don't make a preview if there already is one.  #1445
2016-07-06 14:05:32 -04:00
Davide P. Cervone
cb7314d9e8 Merge pull request #1523 from dpvc/issue1468
Don't copy environment into array environments.  #1468
2016-07-06 14:03:55 -04:00
Davide P. Cervone
1c9e74a8f6 Merge pull request #1512 from dpvc/node241
Make CHTML mglyph scale image size by hand.  mathjax/MathJax-node#241
2016-07-06 14:01:23 -04:00
Davide P. Cervone
d29f299c35 Merge pull request #1511 from dpvc/issue1356
Don't convert attribute to boolean unless the default is a boolean.  #1356
2016-07-06 13:59:57 -04:00
Davide P. Cervone
07709589b1 Merge pull request #1510 from dpvc/issue1393
Prevent CSS bleedthrough for box-sizing (set by Bootstrap CSS).  #1393
2016-07-06 13:52:22 -04:00
Davide P. Cervone
c0331703f4 Merge pull request #1509 from dpvc/issue1084
Make delimiters symmetric for \left and \right.  #1084
2016-07-06 13:50:45 -04:00
Davide P. Cervone
7b98391a68 Add ignoreTags to asciimath2jax to be consistent with tex2jax. 2016-07-06 11:59:43 -04:00
Davide P. Cervone
2f1c09224a Fix line breaking to handle hrefs properly both when they are split and when they are not. Resolves issue #1022. 2016-07-06 07:43:04 -04:00
Davide P. Cervone
92e1ce90b5 Add <wbr> as ignored tag, and change to a list of ones to ignore. Cache the math.nextSibling node. Remove msieNewlineBug and fold that into the ignoreTags hash. Resolves issue #1087. 2016-07-05 21:06:31 -04:00
Davide P. Cervone
595d38e8af Change class to mjx-box so that width will have the proper effect (due to fix in CSS in PR #1448). Resolves issue #1543. 2016-07-05 13:18:05 -04:00
Davide P. Cervone
fb998031b6 Don't require both prevLevel > 0 and scriptlevel > 0 (either true shoudl be sufficient). Resolves issue #911. 2016-07-04 13:43:31 -04:00
Davide P. Cervone
4fdec9f911 Remove debugging code. 2016-07-04 13:36:40 -04:00
Davide P. Cervone
86165f9a3a Fix determination of line-breaing parent element. Resolves issue #1548. 2016-07-04 13:16:06 -04:00
Davide P. Cervone
ba22166399 handle case where options are not passed. 2016-07-04 12:56:53 -04:00
Davide P. Cervone
68369285fd Make fractions with linebreaks center the elements based on the natural width (not 100%) in HTML-CSS and CHTML, just as in SVG. Resolves issue #1539. 2016-07-04 12:50:10 -04:00
Davide P. Cervone
47a072fae6 Add stretchy data for U+20D7 to HTML-CSS, CHTML, SVG data for TeX and STIX fonts. Other fonts already have it. Resolves issue #1544. 2016-07-04 11:36:05 -04:00
Davide P. Cervone
0e433e2f40 Fix getNode() yet again to walk the tree properly. Also, make CHTMLcoreNode() step through inferred rows (to match what Core() does). Finally, make CHTMLaddChild() add a box of the correct type if forceChild is set. Resolves issue #1541. 2016-07-04 11:02:06 -04:00
Davide P. Cervone
3ee5ca30bb Don't let preview width interfere with the determination of the container width. Resolves issue #1364. 2016-06-23 20:37:25 -04:00
Davide P. Cervone
cdea890e52 Make mhchem have a config parameter that can be used to select the new version (when it is available on the CDN) or the old legacy version. 2016-06-23 20:25:23 -04:00
Davide P. Cervone
f2ac60f2c5 Make sure CHTML output stays a table-cell when focused. 2016-06-22 13:59:09 -04:00
Davide P. Cervone
b6504fb366 Use a new approach to aligning labels with their table rows that should reduce the round-off problems by forcing each row to the desired height, and doing the same with the labels. Resolves issue #1532 (and #1500). 2016-06-22 11:58:12 -04:00
Davide P. Cervone
94f2f20448 Fix problem with Safari inserting linebreaks for in-line math due to new width-detection scheme (linebreakSpan). #1478. 2016-06-20 18:23:18 -04:00
Davide P. Cervone
e7446074c0 Make content-mathml extension use proper form for <mn>-n</mn>. Issue #989. 2016-06-18 09:23:48 -04:00
Davide P. Cervone
8f628e0590 Adjust height and depth of minus to match plus, and fix arrow rep to remove the extra when it is used as an arrow extender. Fix up some spacing and use shorthands for some font names. Resolves issue #1187. 2016-06-16 22:20:56 -04:00