forgejo/modules/markup/markdown
Gusted da1c0f7f18
Some checks are pending
/ release (push) Waiting to run
testing-integration / test-unit (push) Waiting to run
testing-integration / test-sqlite (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
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 chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
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 chore: Remove IsXXX 2025-01-31 16:22:29 +01:00
color_util.go feat: support color dots for 4 character hex. 2024-11-02 13:37:14 +01:00
color_util_test.go feat: support color dots for 4 character hex. 2024-11-02 13:37:14 +01:00
convertyaml.go Improve Wiki TOC (#24137) 2023-04-17 15:05:19 -04:00
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 Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
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 chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
renderconfig.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
renderconfig_test.go Improve Wiki TOC (#24137) 2023-04-17 15:05:19 -04:00
toc.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
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 chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
transform_image.go fix(ui): add missing lazy load attribute to images (#8246) 2025-06-25 18:31:03 +02:00
transform_link.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
transform_list.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00