1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-10-15 19:42:04 +00:00
forgejo/modules/markup/markdown
Gusted da1c0f7f18 fix: enable multi-line math equations in wiki (#8424)
- When math equation support was added into Gitea it allowed for math equations to be typed over multiple lines via `\[ ... \]` and `$$ ... $$`. Specifically the former delimiters caused problems with legitimate markdown input to be seen as a math equation and therefore was disabled in e1a82a15d3.
- Enable this multi-line parsing for wiki as it's less likely to cause issues in the context of the wiki.
- It is hard to fix this issue in a proper way without investing a good amount of time in Goldmark as explained in https://codeberg.org/forgejo/forgejo/issues/6902#issuecomment-2845317
- Added unit test.
- Resolves forgejo/forgejo#6902

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8424
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-07-06 22:00:09 +02:00
..
callout
math fix: enable multi-line math equations in wiki (#8424) 2025-07-06 22:00:09 +02:00
util fix: enable multi-line math equations in wiki (#8424) 2025-07-06 22:00:09 +02:00
ast.go
color_util.go
color_util_test.go
convertyaml.go
goldmark.go fix: enable multi-line math equations in wiki (#8424) 2025-07-06 22:00:09 +02:00
markdown.go fix: enable multi-line math equations in wiki (#8424) 2025-07-06 22:00:09 +02:00
markdown_test.go fix: enable multi-line math equations in wiki (#8424) 2025-07-06 22:00:09 +02:00
meta.go
meta_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
prefixed_id.go
renderconfig.go
renderconfig_test.go
toc.go
transform_codespan.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
transform_heading.go
transform_image.go fix(ui): add missing lazy load attribute to images (#8246) 2025-06-25 18:31:03 +02:00
transform_link.go
transform_list.go