forgejo/modules/markup/markdown/math
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
..
block_node.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
block_parser.go fix: enable multi-line math equations in wiki (#8424) 2025-07-06 22:00:09 +02:00
block_renderer.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
inline_block_node.go Fix markdown preview $$ support (#31514) 2024-07-07 07:29:49 +02:00
inline_node.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
inline_parser.go fix various typos (#7690) 2025-04-28 06:46:29 +00:00
inline_renderer.go Fix markdown preview $$ support (#31514) 2024-07-07 07:29:49 +02:00
math.go chore: Remove WithXXXParser 2025-01-31 16:22:29 +01:00