Skip to content

Commit 4f95fa7

Browse files
committed
Update custom-build example
1 parent cdaec6e commit 4f95fa7

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

web/webpack.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -610,20 +610,15 @@ the following:
610610
//
611611
Enrich(Register(browser()), new MathML());
612612
613-
//
614-
// Create the TeX input jax
615-
//
616-
const inputJax = new TeX({
617-
packages: AllPackages,
618-
macros: {require: ['', 1]} // Make \require a no-op since all packages are loaded
619-
});
620-
621613
//
622614
// Initialize mathjax with a blank DOM.
623615
//
624616
const html = MathJax.document('', {
625617
enrichSpeech: 'shallow', // add speech to the enriched MathML
626-
InputJax: tex
618+
InputJax: new TeX({
619+
packages: AllPackages.filter((name) => name !== 'bussproofs'), // Bussproofs needs an output jax
620+
macros: {require: ['', 1]} // Make \require a no-op since all packages are loaded
621+
})
627622
});
628623
629624
//
@@ -637,7 +632,6 @@ the following:
637632
window.MathJax = {
638633
version: mathjax.version,
639634
html: html,
640-
tex: inputJax,
641635
sreReady: sreReady,
642636
643637
tex2speech(tex, display = true) {

0 commit comments

Comments
 (0)