Skip to content

Commit 993fa89

Browse files
committed
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
1 parent 441cd0f commit 993fa89

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

unpacked/config/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ MathJax.Hub.Config({
292292
// as listed below). You can add to (or remove from) this list to prevent
293293
// MathJax from processing mathematics in specific contexts.
294294
//
295-
skipTags: ["script","noscript","style","textarea","pre","code"],
295+
skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
296296

297297
//
298298
// This is the class name used to mark elements whose contents should
@@ -379,7 +379,7 @@ MathJax.Hub.Config({
379379
// as listed below). You can add to (or remove from) this list to prevent
380380
// MathJax from processing mathematics in specific contexts.
381381
//
382-
skipTags: ["script","noscript","style","textarea","pre","code"],
382+
skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
383383

384384
//
385385
// This is the class name used to mark elements whose contents should

unpacked/extensions/asciimath2jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ MathJax.Extension.asciimath2jax = {
3434
config: {
3535
delimiters: [['`','`']], // The star/stop delimiter pairs for asciimath code
3636

37-
skipTags: ["script","noscript","style","textarea","pre","code"],
37+
skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
3838
// The names of the tags whose contents will not be
3939
// scanned for math delimiters
4040

unpacked/extensions/tex2jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ MathJax.Extension.tex2jax = {
4343
// balanced within math delimiters (allows for nested
4444
// dollar signs). Set to false to get pre-v2.0 compatibility.
4545

46-
skipTags: ["script","noscript","style","textarea","pre","code"],
46+
skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
4747
// The names of the tags whose contents will not be
4848
// scanned for math delimiters
4949

0 commit comments

Comments
 (0)