Skip to content

Macro Expansion and Function Arguments Don't Work Together #1720

@maths22

Description

@maths22

What do I expect: \text\AA to render as Å
What happens: \text\AA generates an error (ParseError: KaTeX parse error: Got function '\r' as argument to '\text' at position 1: \̲r̲ ̲A)

Why does this happen? KaTeX expands macros before processing function arguments

Refs #924

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions