Open woodie opened 6 months ago
We see a single-page cartridge can be patched, but we need to identifying the appropriate place to call MathJax.startup.defaultReady() so that we only load MathJax once, but then typeset 0each fragment as additional pages are selected in the viewer.
MathJax.startup.defaultReady()
https://github.com/instructure/common-cartridge-viewer/pull/201/files
# src/Resource.js + const script = document.createElement("script"); + script.src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"; + script.async = true; + document.body.appendChild(script);
We see a single-page cartridge can be patched, but we need to identifying the appropriate place to call
MathJax.startup.defaultReady()
so that we only load MathJax once, but then typeset 0each fragment as additional pages are selected in the viewer.https://github.com/instructure/common-cartridge-viewer/pull/201/files