Remove previous output that is marked by MathJax_Processed as well as MathJax_Processing. Also could have allowed proper output in issue #1384, though it woud have replaced all the math on the page.
This commit is contained in:
parent
bab0a8dd8c
commit
fc1d3d49f0
|
@ -65,7 +65,7 @@
|
|||
// Remove any existing output
|
||||
//
|
||||
prev = script.previousSibling;
|
||||
if (prev && String(prev.className).match(/^MathJax_PlainSource(_Display)?( MathJax_Processing)?$/)) {
|
||||
if (prev && String(prev.className).match(/^MathJax(_PlainSource)?(_Display)?( MathJax_Process(ing|ed))?$/)) {
|
||||
prev.parentNode.removeChild(prev);
|
||||
}
|
||||
//
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
// Remove any existing output
|
||||
//
|
||||
prev = script.previousSibling;
|
||||
if (prev && String(prev.className).match(/^MathJax_PHTML(_Display)?( MathJax_Processing)?$/))
|
||||
if (prev && String(prev.className).match(/^MathJax(_PHTML)?(_Display)?( MathJax_Process(ing|ed))?$/))
|
||||
{prev.parentNode.removeChild(prev)}
|
||||
//
|
||||
// Add the span, and a div if in display mode,
|
||||
|
|
|
@ -207,7 +207,7 @@
|
|||
// Remove any existing output
|
||||
//
|
||||
prev = script.previousSibling;
|
||||
if (prev && String(prev.className).match(/^MathJax(_SVG)?(_Display)?( MathJax(_SVG)?_Processing)?$/))
|
||||
if (prev && String(prev.className).match(/^MathJax(_SVG)?(_Display)?( MathJax(_SVG)?_Process(ing|ed))?$/))
|
||||
{prev.parentNode.removeChild(prev)}
|
||||
//
|
||||
// Add the span, and a div if in display mode,
|
||||
|
|
Loading…
Reference in New Issue
Block a user