diff --git a/unpacked/extensions/asciimath2jax.js b/unpacked/extensions/asciimath2jax.js index 476eefb5f..03c701a1b 100644 --- a/unpacked/extensions/asciimath2jax.js +++ b/unpacked/extensions/asciimath2jax.js @@ -27,7 +27,7 @@ */ MathJax.Extension.asciimath2jax = { - version: "2.1.1", + version: "2.1.2", config: { delimiters: [['`','`']], // The star/stop delimiter pairs for asciimath code @@ -75,7 +75,9 @@ MathJax.Extension.asciimath2jax = { } this.start = new RegExp(starts.sort(this.sortLength).join("|"),"g"); this.skipTags = new RegExp("^("+config.skipTags.join("|")+")$","i"); - this.ignoreClass = new RegExp("(^| )("+config.ignoreClass+")( |$)"); + var ignore = MathJax.Hub.config.preRemoveClass; + if (config.ignoreClass !== "") {ignore += "|" + config.ignoreClass} + this.ignoreClass = new RegExp("(^| )("+ignore+")( |$)"); this.processClass = new RegExp("(^| )("+config.processClass+")( |$)"); return true; }, diff --git a/unpacked/extensions/tex2jax.js b/unpacked/extensions/tex2jax.js index 55275929b..f6b7b4111 100644 --- a/unpacked/extensions/tex2jax.js +++ b/unpacked/extensions/tex2jax.js @@ -24,7 +24,7 @@ */ MathJax.Extension.tex2jax = { - version: "2.1.1", + version: "2.1.2", config: { inlineMath: [ // The start/stop pairs for in-line math // ['$','$'], // (comment out any you don't want, or add your own, but @@ -107,7 +107,9 @@ MathJax.Extension.tex2jax = { if (config.processRefs) {parts.push("\\\\(eq)?ref\\{[^}]*\\}")} this.start = new RegExp(parts.join("|"),"g"); this.skipTags = new RegExp("^("+config.skipTags.join("|")+")$","i"); - this.ignoreClass = new RegExp("(^| )("+config.ignoreClass+")( |$)"); + var ignore = MathJax.Hub.config.preRemoveClass; + if (config.ignoreClass !== "") {ignore += "|" + config.ignoreClass} + this.ignoreClass = new RegExp("(^| )("+ignore+")( |$)"); this.processClass = new RegExp("(^| )("+config.processClass+")( |$)"); return (parts.length > 0); },