go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.16k stars 5.49k forks source link

math: indented display math doesn't render #27834

Open nschloe opened 1 year ago

nschloe commented 1 year ago

Description

Using display math in quote environment only works if indented by 0 or 1 spaces. For indentation with 2 spaces, a superfluous open square bracket [ is created, and an error is produced for 3+ spaces indentation.

MWE:

Indent 0:

\[
\alpha
\]

Indent 1:

 \[
 \alpha
 \]

Indent 2:

  \[
  \alpha
  \]

Indent 3:

   \[
   \alpha
   \]

Screenshot:

screenshot_2023-11-17-082125

Gitea Version

1.22.0+dev-256-gb36e2ca41

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

https://try.gitea.io/

Database

None

nschloe commented 1 year ago

@lunny Are you sure this is a type/report-upstream issue?

nschloe commented 7 months ago

Ping @lunny: Check type/report-upstream label.

lunny commented 7 months ago

Sorry if I made a mistake. I will check it again once I get my computer.

delvh commented 7 months ago

This issue is indeed a tough question. I can imagine it to be caused both upstream and from us.