forgejo/modules/markup/markdown
yp05327 b6e480fcbb
Fix inconsistent rendering of block mathematical expressions (#29677)
Fix #28735

GitHub render `\```math\``` ` as a block now.
Add `display` class will render it as a block.

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/2a1c20c7-438e-4ab1-8c66-cf91c8343087)

![image](https://github.com/go-gitea/gitea/assets/18380374/b81b8a93-8bca-46a5-b7db-e0d2f53e1342)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 8fc1a8f0eb642c574610a346e858d42c433ebe01)
2024-03-20 08:46:28 +01:00
..
callout Restore compatibility with the legacy GitHub callout syntax 2024-02-17 18:35:45 +01:00
math [GITEA] Require Latex code to have a end sequence 2024-02-05 16:09:41 +01:00
ast.go modules/markup: Lift out the GitHub callout transformer 2024-02-17 18:04:55 +01:00
convertyaml.go Improve Wiki TOC (#24137) 2023-04-17 15:05:19 -04:00
goldmark.go [BUG] Restrict when to make link absolute in markdown 2024-02-19 20:56:00 +01:00
markdown.go Fix inconsistent rendering of block mathematical expressions (#29677) 2024-03-20 08:46:28 +01:00
markdown_test.go Port "Fix wrong test usage of AppSubURL" 2024-03-06 21:47:44 +01:00
meta.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
meta_test.go
renderconfig.go Fix task list checkbox toggle to work with YAML front matter (#25184) 2023-06-13 14:44:47 +08:00
renderconfig_test.go Improve Wiki TOC (#24137) 2023-04-17 15:05:19 -04:00
toc.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00