Skip to content

Commit 721d634

Browse files
committed
no longer need to tweak mathjax config in texToSVG
1 parent d49f5df commit 721d634

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/lib/svg_text_utils.js

-12
Original file line numberDiff line numberDiff line change
@@ -153,27 +153,16 @@ function cleanEscapesForTex(s) {
153153

154154
function texToSVG(_texString, _config, _callback) {
155155
var originalRenderer,
156-
originalConfig,
157156
originalProcessSectionDelay,
158157
tmpDiv;
159158

160159
MathJax.Hub.Queue(
161160
function() {
162-
originalConfig = Lib.extendDeepAll({}, MathJax.Hub.config);
163-
164161
originalProcessSectionDelay = MathJax.Hub.processSectionDelay;
165162
if(MathJax.Hub.processSectionDelay !== undefined) {
166163
// MathJax 2.5+
167164
MathJax.Hub.processSectionDelay = 0;
168165
}
169-
170-
return MathJax.Hub.Config({
171-
messageStyle: 'none',
172-
tex2jax: {
173-
inlineMath: [['$', '$'], ['\\(', '\\)']]
174-
},
175-
displayAlign: 'left',
176-
});
177166
},
178167
function() {
179168
// Get original renderer
@@ -213,7 +202,6 @@ function texToSVG(_texString, _config, _callback) {
213202
if(originalProcessSectionDelay !== undefined) {
214203
MathJax.Hub.processSectionDelay = originalProcessSectionDelay;
215204
}
216-
return MathJax.Hub.Config(originalConfig);
217205
});
218206
}
219207

0 commit comments

Comments
 (0)