Markdown doesn't render math within brackets #13153

Closed
opened 2025-11-02 10:32:56 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @lns on GitHub (Jun 14, 2024).

Description

It seems markdown doesn't render math within brackets.

For example, on Github the markdown

$i = \sqrt{-1}$ ($i = \sqrt{-1}$)

renders as

i = \sqrt{-1} (i = \sqrt{-1})

However, on Gitea it renders differently
9ef3e3b7-c81f-428b-9b0c-f097b2558e39

Gitea Version

1.23.0+dev-218-g90bcdf9829

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?

Reproduced at https://demo.gitea.com/

Database

None

Originally created by @lns on GitHub (Jun 14, 2024). ### Description It seems markdown doesn't render math within brackets. For example, on Github the markdown ```markdown $i = \sqrt{-1}$ ($i = \sqrt{-1}$) ``` renders as $i = \sqrt{-1}$ ($i = \sqrt{-1}$) However, on Gitea it renders differently <img width="220" alt="9ef3e3b7-c81f-428b-9b0c-f097b2558e39" src="https://github.com/go-gitea/gitea/assets/1597873/508711e2-8da6-45e9-87c3-048825399240"> ### Gitea Version 1.23.0+dev-218-g90bcdf9829 ### 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? Reproduced at [https://demo.gitea.com/](https://demo.gitea.com/lns/test) ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:32:56 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13153