We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58ae54 commit 61123b2Copy full SHA for 61123b2
_files/js/inforge/bbmath/mathjax-loader.js
@@ -24,3 +24,22 @@ window.MathJax = {
24
script.async = true;
25
document.head.appendChild(script);
26
})();
27
+
28
+function retypesetMathjax(post)
29
+{
30
+ $(post).off('DOMSubtreeModified', postModifiedHandler);
31
+ window.MathJax.typesetPromise().then(() => {
32
+ $(post).on('DOMSubtreeModified', postModifiedHandler);
33
+ }).catch((err) => console.log(err.message));
34
+}
35
36
+function postModifiedHandler()
37
38
+ retypesetMathjax(this);
39
40
41
+$(window).on('load', function() {
42
+ $('article.message, article.resourceBody-main, blockquote.message-body').each(function() {
43
+ $(this).on('DOMSubtreeModified', postModifiedHandler);
44
+ });
45
+});
0 commit comments