0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-14 18:18:50 -05:00
forgejo/modules/markup
Robert Wolff 519169ee7b fix: more permissive markup commit hash detection (#6784)
This allows many more variants of commit hashes to be detected and interpreted as link if they are enclosed by up to two different non-word/non-digit characters. I also had in mind RTL languages, where the question mark and similar symbols are on the left of the commit hash.

Resolves #6771

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6784
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Robert Wolff <mahlzahn@posteo.de>
Co-committed-by: Robert Wolff <mahlzahn@posteo.de>
2025-02-05 09:04:19 +00:00
..
asciicast Fix and refactor markdown rendering (#32522) 2024-11-17 20:34:28 +01:00
common
console
csv Fix and refactor markdown rendering (#32522) 2024-11-17 20:34:28 +01:00
external
markdown chore: remove deadcode (#6743) 2025-02-02 12:05:25 +00:00
mdstripper chore: fix deprecation 2024-11-02 16:39:27 +01:00
orgmode Update module github.com/alecthomas/chroma/v2 to v2.15.0 (forgejo) (#6477) 2025-01-06 04:11:25 +00:00
tests/repo/repo1_filepreview fix inline file preview for files with encoded URL, fix #5069 (#6525) 2025-01-30 08:20:05 +00:00
camo.go Use camo.Always instead of camo.Allways (#32097) 2024-09-27 08:45:55 +02:00
camo_test.go Use camo.Always instead of camo.Allways (#32097) 2024-09-27 08:45:55 +02:00
file_preview.go fix inline file preview for files with encoded URL, fix #5069 (#6525) 2025-01-30 08:20:05 +00:00
html.go fix: more permissive markup commit hash detection (#6784) 2025-02-05 09:04:19 +00:00
html_internal_test.go fix: more permissive markup commit hash detection (#6784) 2025-02-05 09:04:19 +00:00
html_test.go fix: more permissive markup commit hash detection (#6784) 2025-02-05 09:04:19 +00:00
renderer.go
renderer_test.go
sanitizer.go fix: strict matching of allowed content for sanitizer 2024-11-15 10:59:36 +01:00
sanitizer_test.go feat: Add partial quoting 2024-10-26 19:15:43 +02:00