Skip to content

Commit 010b7cc

Browse files
committed
address review comments
1 parent b590d93 commit 010b7cc

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/main.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ function ConfigureMathJax() {
145145
jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/SVG", "output/CommonHTML"],
146146
extensions: ["toMathML.js"],
147147
TeX: {extensions: window.Array("AMSmath.js","AMSsymbols.js","autoload-all.js")},
148-
tex2jax: {inlineMath: [['$','$'],['\\(','\\)']], preview:"none"},
149-
mml2jax: {preview:"none"},
150-
asciimath2jax: {preview:"none"},
151148
SVG: {useFontCache: true, useGlobalCache: false, EqnChunk: 1000000, EqnDelay: 0},
152149
CommonHTML: {EqnChunk: 1000000, EqnDelay: 0, undefinedFamily:"monospace"},
153150

@@ -474,8 +471,10 @@ function ConfigureMathJax() {
474471
if (MathJaxConfig) {
475472
adjustArrays(MathJaxConfig);
476473
// merge the defaults into the user configuration (to sanitize)
477-
var currentMathJax = Insert({},window.MathJax);
478-
window.MathJax = Insert(Insert({},MathJaxConfig),currentMathJax);
474+
window.MathJax = Insert(Insert({},MathJaxConfig),window.MathJax);
475+
if (MathJaxConfig.extensions) {
476+
window.MathJax.extensions = window.MathJax.extensions.concat(MathJaxConfig.extensions);
477+
}
479478
}
480479
}
481480

@@ -658,7 +657,7 @@ function StartQueue() {
658657

659658
//
660659
// Get the math data and callback
661-
// and set the content with the proper delimiters
660+
// and set the content with the proper script type
662661
//
663662
var item = queue.shift();
664663
data = item[0]; callback = item[1];
@@ -698,7 +697,7 @@ function StartQueue() {
698697
timer = setTimeout(RestartMathJax,data.timeout);
699698
HUB.Queue(
700699
$$(SetRenderer,renderer),
701-
$$("Typeset",HUB),
700+
$$("Process",HUB),
702701
$$(TypesetDone,result),
703702
$$(GetSpeech,result),
704703
$$(GetMML,result),

0 commit comments

Comments
 (0)