Skip to content

superscript and subscript rendering in MathJax 4 #3380

Open
@snorky22

Description

@snorky22

Issue Summary

MathJax 4 beta 7 fails to render superscript and subscript when there is no opening brace

Steps to Reproduce:

  • typesetting \Phi^\rm{ id}_{L} results in the following error message: Missing open brace for superscript
  • typesetting \mathcal{L}_\rm{ ce} results in the following error message: Missing open brace for subscript

These two equations render fine in MathJax 3

Technical details:

  • MathJax Version: 4 beta 7
  • Client OS: Mac OS X 15.5
  • Browser: Chrome 137.0.7151.104

I am using the following MathJax configuration:

MathJax = {
                    output: {
                        font: 'mathjax-{{ font }}',
                        displayOverflow: 'linebreak',
                        linebreaks: {
                            inline: true,
                            width: '100%',
                        }
                    }
                };

and loading MathJax via

<script id="MathJax-script" defer
                src="https://cdn.jsdelivr.net/npm/[email protected]/tex-mml-chtml.js"></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions