Skip to content

Predefined Tex environments with trailing asterisk (e.g. "align*", "equation*") are not properly recognized #2709

@yyccbb

Description

@yyccbb

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

No response

Tell us about your environment

macOS 15.3.2

MarkBind version

6.0.0

Describe the bug and the steps to reproduce it

Important: Add the following to site.json to activate \begin{} ... \end{} environment.

{
  "plugins": [
    "mathDelimiters"
  ],
  "pluginsContext" : {
    "mathDelimiters" : {
      "delimiters": ["beg_end"]
    }
  },
}

Afterwards, test the rendering of

\begin{align*}
  x^2 + y^2 &= 1 \\
  y &= \sqrt{1 - x^2}
\end{align*}

and you can see that this block is not recognized as Tex.

Expected behavior

Such environments should be correctly parsed and rendered as an unnumbered tex block.

Anything else?

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions