From 993fa899f63944fce717185e715b15f2319c4f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Tue, 27 Aug 2013 09:46:56 +0200 Subject: [PATCH] Skip annotation and annotation-xml elements so that they won't be processed by the TeX/AsciiMath input (even when the MathML input is disabled). #484 --- unpacked/config/default.js | 4 ++-- unpacked/extensions/asciimath2jax.js | 2 +- unpacked/extensions/tex2jax.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unpacked/config/default.js b/unpacked/config/default.js index 878efdd38..f016855ea 100644 --- a/unpacked/config/default.js +++ b/unpacked/config/default.js @@ -292,7 +292,7 @@ MathJax.Hub.Config({ // as listed below). You can add to (or remove from) this list to prevent // MathJax from processing mathematics in specific contexts. // - skipTags: ["script","noscript","style","textarea","pre","code"], + skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"], // // This is the class name used to mark elements whose contents should @@ -379,7 +379,7 @@ MathJax.Hub.Config({ // as listed below). You can add to (or remove from) this list to prevent // MathJax from processing mathematics in specific contexts. // - skipTags: ["script","noscript","style","textarea","pre","code"], + skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"], // // This is the class name used to mark elements whose contents should diff --git a/unpacked/extensions/asciimath2jax.js b/unpacked/extensions/asciimath2jax.js index c9c334991..a9dd1dd73 100644 --- a/unpacked/extensions/asciimath2jax.js +++ b/unpacked/extensions/asciimath2jax.js @@ -34,7 +34,7 @@ MathJax.Extension.asciimath2jax = { config: { delimiters: [['`','`']], // The star/stop delimiter pairs for asciimath code - skipTags: ["script","noscript","style","textarea","pre","code"], + skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"], // The names of the tags whose contents will not be // scanned for math delimiters diff --git a/unpacked/extensions/tex2jax.js b/unpacked/extensions/tex2jax.js index fc70d685f..009b74157 100644 --- a/unpacked/extensions/tex2jax.js +++ b/unpacked/extensions/tex2jax.js @@ -43,7 +43,7 @@ MathJax.Extension.tex2jax = { // balanced within math delimiters (allows for nested // dollar signs). Set to false to get pre-v2.0 compatibility. - skipTags: ["script","noscript","style","textarea","pre","code"], + skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"], // The names of the tags whose contents will not be // scanned for math delimiters