LaTex in markdown doesn't shown in somecase #13192

Closed
opened 2025-11-02 10:34:21 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @tsctsc6 on GitHub (Jun 23, 2024).

Description

We can input LaTex in markdown by using dollar symbol, but if I type some text before LaTex, the LaTex don't work in gitea web page.For more info, see Screenshots.

Gitea Version

1.22.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image
image
And in other markdown editor, Latex work well.
image

Git Version

git version 2.45.2.windows.1

Operating System

window10

How are you running Gitea?

Installation from binary

Database

SQLite

Originally created by @tsctsc6 on GitHub (Jun 23, 2024). ### Description We can input LaTex in markdown by using dollar symbol, but if I type some text before LaTex, the LaTex don't work in gitea web page.For more info, see Screenshots. ### Gitea Version 1.22.0 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/93368014/c31edab1-dd6d-40c2-9454-3e38f1c31dcf) ![image](https://github.com/go-gitea/gitea/assets/93368014/33714d04-bfc1-48fc-ac69-aa5175ad602f) And in other markdown editor, Latex work well. ![image](https://github.com/go-gitea/gitea/assets/93368014/268665e4-1a8b-4633-9286-85d73a9b0cd1) ### Git Version git version 2.45.2.windows.1 ### Operating System window10 ### How are you running Gitea? Installation from binary ### Database SQLite
GiteaMirror added the issue/needs-feedbacktype/bug labels 2025-11-02 10:34:21 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jun 23, 2024):

Does it work if you add a space after the comma , ?

@wxiaoguang commented on GitHub (Jun 23, 2024): Does it work if you add a space after the comma `,` ?
Author
Owner

@wxiaoguang commented on GitHub (Jun 23, 2024):

$a \to b$

Hi,$a \to b$

Hi, $a \to b$

a \to b

Hi,$a \to b$

Hi, a \to b

GitHub also requires that there should be a space after comma, and I think the requirement is right, because a correct sentence always contains that space.

@wxiaoguang commented on GitHub (Jun 23, 2024): ``` $a \to b$ Hi,$a \to b$ Hi, $a \to b$ ``` $a \to b$ Hi,$a \to b$ Hi, $a \to b$ GitHub also requires that there should be a space after comma, and I think the requirement is right, because a correct sentence always contains that space.
Author
Owner

@tsctsc6 commented on GitHub (Jun 23, 2024):

I see, thank you.

@tsctsc6 commented on GitHub (Jun 23, 2024): I see, thank you.
Author
Owner

@wxiaoguang commented on GitHub (Jun 23, 2024):

Thank you for your report.

The problem in markdown world is that there is no standard in many cases. If there would be some syntax standards for "latex in markdown", then we could strictly follow them.

@wxiaoguang commented on GitHub (Jun 23, 2024): Thank you for your report. The problem in markdown world is that there is no standard in many cases. If there would be some syntax standards for "latex in markdown", then we could strictly follow them.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13192