Skip to content

Missing escape character of braces when building with Mathjax support #1660

Open
@haotian-wang

Description

@haotian-wang

The escape braces \{ and \} are converted to { and } when building with Mathjax support, which is incorrect.

Here is an example,

z = \max\{x, y\}

This should be rendered as

correct equation

But mdBook renders it as

incorrect equation

Some equations may even fail to render due to missing the escape character of the braces. For example,

z = \max\left\{x^2, y^2\right\}

This should be rendered as

correct equation 2

mdBook will show it as
image

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