Skip to content

Incorrect delimiter matching in math mode when only one is escaped #6409

@Andrew15-5

Description

@Andrew15-5

Description

I only tested this with 2 pairs, but it only works incorrectly when modifying one of the inner delimiters.

$ { (x / y) } $ // baseline

$ { \(x / y) } $ // expected: (), got: (}

$ { (x / y\) } $ // expected: (), got: {)

$ { \(x / y\) } $ // expected: (), got: ()

$ \{ (x / y) } $ // expected: {}, got: {}

$ { (x / y) \} $ // expected: {}, got: {}

$ \{ (x / y) \} $ // expected: {}, got: {}

Image

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmathRelated to math category, with its syntax, layout, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions