Skip to content

Commit 41eb7bf

Browse files
authored
Merge pull request #343 from mathjax/develop
v1.1.1 release
2 parents 8720f30 + 6ff4d62 commit 41eb7bf

File tree

7 files changed

+952
-4
lines changed

7 files changed

+952
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_js:
33
- '4'
44
- '5'
55
- '6'
6+
- '7'
67
- stable
78
sudo: false
89
script:

lib/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function ConfigureMathJax() {
394394
jax.CHTML.ex = ex = (data||defaults).ex;
395395
jax.CHTML.em = jax.CHTML.outerEm = em = ex / CHTML.TEX.x_height; // scale ex to x_height
396396
jax.CHTML.cwidth = width / em;
397-
jax.CHTML.lineWidth = (linebreak ? width / em : CHTML.BIGDIMEN);
397+
jax.CHTML.lineWidth = (linebreak ? width / em : 1000000);
398398
jax.CHTML.scale = 1; jax.CHTML.fontsize = "100%";
399399
}
400400
//
@@ -867,5 +867,9 @@ exports.config = function (config) {
867867
if (config.undefinedCharError != null) {undefinedChar = config.undefinedCharError}
868868
if (config.extensions != null) {extensions = config.extensions}
869869
if (config.fontURL != null) {fontURL = config.fontURL}
870-
if (config.MathJax) {MathJaxConfig = config.MathJax}
870+
if (config.MathJax) {
871+
// strip MathJax config blocks to avoid errors
872+
if (config.MathJax.config) delete config.MathJax.config
873+
MathJaxConfig = config.MathJax
874+
}
871875
}

0 commit comments

Comments
 (0)