Skip to content

Commit 211702d

Browse files
authored
fix: load MathJax without a11y (#675)
1 parent 47a3724 commit 211702d

33 files changed

+2
-1873
lines changed

app/js/mathjax/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ window.MathJax = {
2626
asciimath: {
2727
delimiters: [['\\$', '\\$']]
2828
},
29-
loader: { load: ['input/asciimath', 'output/chtml', 'ui/menu'] }
29+
loader: { load: ['input/asciimath', 'input/tex-full', 'output/chtml'] }
3030
}

app/js/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ asciidoctor.browser.renderer = (webExtension, document, Constants, Settings, Dom
5959
}))
6060
Dom.appendOnce(document.head, Dom.createScriptElement({
6161
id: 'asciidoctor-mathjax-initialization',
62-
src: webExtension.runtime.getURL('vendor/MathJax-3.2.2/tex-chtml-full.js'),
62+
src: webExtension.runtime.getURL('vendor/MathJax-3.2.2/startup.js'),
6363
async: true
6464
}))
6565
Dom.removeElement('asciidoctor-mathjax-typesetting')

app/vendor/MathJax-3.2.2/a11y/assistive-mml.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/vendor/MathJax-3.2.2/a11y/complexity.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/vendor/MathJax-3.2.2/a11y/explorer.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/vendor/MathJax-3.2.2/a11y/semantic-enrich.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/vendor/MathJax-3.2.2/a11y/sre.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/vendor/MathJax-3.2.2/mml-chtml.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/vendor/MathJax-3.2.2/mml-svg.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/vendor/MathJax-3.2.2/node-main.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)