math: Inline math with %\n doesn't render #11850

Closed
opened 2025-11-02 09:49:38 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @nschloe on GitHub (Oct 14, 2023).

Description

Inline math with %\n

$a+%
b$

Screenshot:
screenshot_2023-10-13-160355

Gitea Version

1.22.0+dev-181-g76a85a4ce

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

Originally created by @nschloe on GitHub (Oct 14, 2023). ### Description Inline math with `%\n` ```markdown $a+% b$ ``` Screenshot: ![screenshot_2023-10-13-160355](https://github.com/go-gitea/gitea/assets/181628/d62e30f1-1386-45e0-af6d-ef24a60d208c) ### Gitea Version 1.22.0+dev-181-g76a85a4ce ### 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
GiteaMirror added the type/bugissue/needs-feedback labels 2025-11-02 09:49:38 -06:00
Author
Owner

@zeripath commented on GitHub (Oct 15, 2023):

AFAICS $a+%
b$ doesn't work on Github either.

@zeripath commented on GitHub (Oct 15, 2023): AFAICS $a+% b$ doesn't work on Github either.
Author
Owner

@nschloe commented on GitHub (Oct 15, 2023):

It doesn't and it's a bug.

@nschloe commented on GitHub (Oct 15, 2023): It doesn't and it's a bug.
Author
Owner

@zeripath commented on GitHub (Oct 16, 2023):

Gitea is supposed to match the behaviour of Github as closely as possible in this regard. I'm not certain that this is therefore a bug.

$ a +
b$ doesn't work either on github. If we change this we'd be making Gitea non-compatible with Github.

@zeripath commented on GitHub (Oct 16, 2023): Gitea is supposed to match the behaviour of Github as closely as possible in this regard. I'm not certain that this is therefore a bug. $ a + b$ doesn't work either on github. If we change this we'd be making Gitea non-compatible with Github.
Author
Owner

@nschloe commented on GitHub (Oct 16, 2023):

Many math things don't work on GitHub. For example, right now math in quotes, such as

a

doesn't work. Is that a reason to disable it in Gitea? Same with math in footnotes, or < without surrounding whitespace such as a<b. There are many more examples, I've collected them here. I'm actually looking at Gitea because it fixes most of these bugs.

@nschloe commented on GitHub (Oct 16, 2023): Many math things don't work on GitHub. For example, right now math in quotes, such as > $`a`$ doesn't work. Is that a reason to disable it in Gitea? Same with math in footnotes, or `<` without surrounding whitespace such as $`a<b`$. There are many more examples, I've collected them [here](https://github.com/nschloe/github-math-bugs). I'm actually looking at Gitea because it fixes most of these bugs.
Author
Owner

@wxiaoguang commented on GitHub (Apr 4, 2025):

inline expects there should be one line (so no newline)

After the problems we have fixed in 1.23, do we still need to keep this open? TBH I do not see a proper solution for such syntax.

@wxiaoguang commented on GitHub (Apr 4, 2025): `inline` expects there should be one line (so no newline) After the problems we have fixed in 1.23, do we still need to keep this open? TBH I do not see a proper solution for such syntax.
Author
Owner

@nschloe commented on GitHub (Apr 4, 2025):

Let's close as wontfix.

@nschloe commented on GitHub (Apr 4, 2025): Let's close as wontfix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11850