fix: work around existing css that fail to draw mathjax (#32764)
This commit is contained in:
@@ -63,7 +63,14 @@ define(
|
||||
t = -1;
|
||||
}, delay);
|
||||
}
|
||||
};
|
||||
|
||||
// this is added to compensate for custom css that accidentally hide mathjax
|
||||
$('.MathJax_SVG>svg').toArray().forEach(el => {
|
||||
if ($(el).width() === 0) {
|
||||
$(el).css('max-width', 'inherit');
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
);
|
||||
window.CodeMirror = CodeMirror;
|
||||
|
||||
@@ -115,6 +115,13 @@
|
||||
t = -1;
|
||||
}, delay);
|
||||
}
|
||||
|
||||
// this is added to compensate for custom css that accidentally hide mathjax
|
||||
$('.MathJax_SVG>svg').toArray().forEach(el => {
|
||||
if ($(el).width() === 0) {
|
||||
$(el).css('max-width', 'inherit');
|
||||
}
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<script type="text/x-mathjax-config">
|
||||
|
||||
@@ -114,6 +114,13 @@
|
||||
t = -1;
|
||||
}, delay);
|
||||
}
|
||||
|
||||
// this is added to compensate for custom css that accidentally hide mathjax
|
||||
$('.MathJax_SVG>svg').toArray().forEach(el => {
|
||||
if ($(el).width() === 0) {
|
||||
$(el).css('max-width', 'inherit');
|
||||
}
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user