Skip to content

Markdown doesn't render math within brackets #31371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lns opened this issue Jun 14, 2024 · 0 comments · Fixed by #31420
Closed

Markdown doesn't render math within brackets #31371

lns opened this issue Jun 14, 2024 · 0 comments · Fixed by #31420
Labels

Comments

@lns
Copy link

lns commented 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

@lns lns added the type/bug label Jun 14, 2024
charles7668 added a commit to charles7668/gitea that referenced this issue Jun 19, 2024
charles7668 added a commit to charles7668/gitea that referenced this issue Jun 19, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Jun 20, 2024
Close go-gitea#31371, support `($ ... $)` like GitHub

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 18, 2024
project-mirrors-bot-tu bot pushed a commit to project-mirrors/forgejo-as-gitea-fork that referenced this issue Jan 23, 2025
Close go-gitea#31371, support `($ ... $)` like GitHub

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 90a3c20)

Conflicts:
	modules/markup/markdown/markdown_test.go
	trivial context conflict
(cherry picked from commit b53be9d)
(cherry picked from commit 7fbcc58)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant