Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #3006
Closed
Open
Issue created Feb 22, 2023 by Alex Edgcomb@AlexEdgcomb

Lazy load does not typeset TeX in <option>

Issue Summary

Lazy load does not typeset in <option> in MathJax 3.2.2, macOS 12.6, and Firefox 110.0.

Steps to Reproduce:

  1. Go to https://codepen.io/alexedgcomb/pen/eYLZxGZ Observed: Dropdown appears blank
image Expected: Dropdown to have x/2 image

Note: Clicking Force typeset (which runs MathJax.startup.document.lazyTypesetAll()) yields the expected result.

Technical details:

  • MathJax Version: 3.2.2
  • macOS 12.6
  • Firefox 110.0

I am using the following MathJax configuration:

MathJax = {
    loader: {
        load: [ 'ui/lazy' ],
    },
};

and loading MathJax via

<script src="https://cdn.jsdelivr.net/npm/mathjax-full@3.2.2/es5/tex-chtml.min.js"></script>

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.:

MathJax = {};

I'm using the workaround of:

MathJax = {
    loader: {
        load: [ 'ui/lazy' ],
    },
    options: {
        lazyAlwaysTypeset: '.disable-lazy-typesetting',
    },
};

and <option class="disable-lazy-typesetting"> for each <option> with TeX

Assignee
Assign to
Time tracking