Skip to content

Math operators require braces when used in superscript/subscript #2319

@jason-s

Description

@jason-s

On katex.org, enter T_\max

Resulting behavior:

KaTeX parse error: Got function '\max' with no arguments as subscript at position 3: T_\̲m̲a̲x̲

Expected behavior: This should be identical to T_{\max}, which does work fine in KaTeX. The T_\max does work in LaTeX and MathJax: http://jbergknoff.github.io/mathjax-sandbox/#JFRfXG1heCQ%3D

Superscripts and subscripts should not require braces.

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