Skip to content
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

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

Open
nschloe opened this issue Oct 14, 2023 · 4 comments
Open

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

nschloe opened this issue Oct 14, 2023 · 4 comments
Labels

Comments

@nschloe
Copy link

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

@zeripath
Copy link
Contributor

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

@nschloe
Copy link
Author

nschloe commented Oct 15, 2023

It doesn't and it's a bug.

@zeripath
Copy link
Contributor

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.

@nschloe
Copy link
Author

nschloe commented 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&lt;b$. There are many more examples, I've collected them here. I'm actually looking at Gitea because it fixes most of these bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants