Skip to content

Commit b0d1af2

Browse files
committed
oops tex regexp match has to come last
1 parent 471197e commit b0d1af2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/svg_text_utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ exports.convertToTspans = function(_context, gd, _callback) {
3131
// Until we get tex integrated more fully (so it can be used along with non-tex)
3232
// allow some elements to prohibit it by attaching 'data-notex' to the original
3333
var tex = (!_context.attr('data-notex')) &&
34-
str.match(FIND_TEX) &&
35-
(typeof MathJax !== 'undefined');
34+
(typeof MathJax !== 'undefined') &&
35+
str.match(FIND_TEX);
3636

3737
var parent = d3.select(_context.node().parentNode);
3838
if(parent.empty()) return;

0 commit comments

Comments
 (0)