Open AlexEdgcomb opened 1 year ago
Note that the contents of <option>
is text only (e.g., see the HTML specification), and can not include styling or other layout, and so MathJax can't show typeset mathematics within <option>
. The fact that MathJax processes the content of these elements is an error that should be fixed by adding select
and option
to the skipHtmlTags
list. I will make a pull request to do so to fix this in the next release.
I've made the pull request.
Issue Summary
Lazy load does not typeset in
<option>
in MathJax 3.2.2, macOS 12.6, and Firefox 110.0.Steps to Reproduce:
Expected: Dropdown to have x/2
Note: Clicking
Force typeset
(which runsMathJax.startup.document.lazyTypesetAll()
) yields the expected result.Technical details:
I am using the following MathJax configuration:
and loading MathJax via
Supporting information:
Issue also reproduces in macOS 12.6 and Chrome 110. I have not tested other browser/OS combos.
Issue does not reproduce when lazy load is removed, i.e.:
I'm using the workaround of:
and
<option class="disable-lazy-typesetting">
for each<option>
with TeX