You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-\[CSS] - Nested atRule's `@media` or `@supports` now properly are replaced with unique identifiers by [@​noreiller](https://github.com/noreiller) in https://github.com/webpack/webpack/pull/15812
It renders
It should render like GitHub
Gitea Version
main
Can you reproduce the bug on the Gitea demo site?
Yes
The text was updated successfully, but these errors were encountered:
So I think the bug is in the backend where it detects \[CSS] as math content. I think we need to be more strict and require the $$ wrapping around math, like below:
Gitea was one of the first services to offer math support using a \(...\)/\[...\] syntax. Unfortunatly, it has not been adopted by any other platform, perhaps also because of the fact that it collides with standard Markdown syntax. (More about this in #27645.)
Right now, GitLab, GitHub, and Pandoc support two syntaxes:
$...$/$$...$$ (traditional TeX),
$`...`$/ ```math... ``` (originally introduced by GitLab in 2016).
In a survey across GitHub, GitLab, Gitea, and Pandoc, I've found that the $-syntax is error prone, also because it's non-native to Markdown. The backticked syntax (not supported by Gitea right now) is a great practical alternative.
For full compatibility with other platform, perhaps Gitea can think about sunsetting the bracket syntax for math, and add the backticked syntax. This would also fix this bug here.
Description
Given this markdown:
It renders
It should render like GitHub
Gitea Version
main
Can you reproduce the bug on the Gitea demo site?
Yes
The text was updated successfully, but these errors were encountered: