forgejo/modules/markup
Gusted a46ef652eb
[GITEA] Require Latex code to have a end sequence
- Currently the parser will look for `\[` and `$$` to detect when Latex
code starts, it will look for `\]` and `$$` respectively in order to
determine the end of the code. However if no end is found the parser
assumes the rest of the input is part of the Latex code.
- Adjust the parser's behavior to not allow the case to assume the rest
of the input is part of the Latex code and requires in order to
determine if some input is Latex code that the end sequence is also
specified.
- Example: `\[hello]` would no longer be detected as Latex code with
this patch.
- Added unit tests.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1817

(cherry picked from commit 452aef1bb1)
(cherry picked from commit 8a857c24b0)
(cherry picked from commit acd1456db9)
(cherry picked from commit 6523b45073)
(cherry picked from commit e2e1a8afe7)
2024-01-01 15:27:12 +01:00
..
asciicast
common
console
csv
external
markdown [GITEA] Require Latex code to have a end sequence 2024-01-01 15:27:12 +01:00
mdstripper
orgmode Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
camo.go
camo_test.go
html.go Fix the issue ref rendering for wiki (#28556) 2023-12-20 14:11:59 +00:00
html_internal_test.go
html_test.go
renderer.go
renderer_test.go
sanitizer.go Use restricted sanitizer for repository description (#28141) 2023-11-23 16:34:25 +00:00
sanitizer_test.go Use restricted sanitizer for repository description (#28141) 2023-11-23 16:34:25 +00:00