forgejo/modules/markup
Gusted 781d2a68cc
[GITEA] Fix orgmode link resolver for text descriptions
- Backport of #2276
- It's possible that the description of an `Regularlink` is `Text` and not
another `Regularlink`. Therefor if it's `Text`, convert it to an
`Regularlink` trough the 'old' behavior (pass it trough `org.String` and
trim `file:` prefix).
- Adds unit tests.
- Resolves https://codeberg.org/Codeberg/Community/issues/1430

(cherry picked from commit 385fc6ee6b)
2024-02-01 17:13:22 +01:00
..
asciicast Support asciicast files as new markup (#22448) 2023-01-18 08:46:58 +08:00
common [GITEA] test markdown CleanValue to prevent regression 2023-12-13 18:12:08 +01:00
console Add context when rendering labels or emojis (#23281) 2023-03-05 22:59:05 +01:00
csv Add context when rendering labels or emojis (#23281) 2023-03-05 22:59:05 +01:00
external Rework markup link rendering (#26745) (#28803) 2024-01-16 14:41:11 +00:00
markdown [GITEA] Fix relative links rendering 2024-01-17 17:57:22 +01:00
mdstripper Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
orgmode [GITEA] Fix orgmode link resolver for text descriptions 2024-02-01 17:13:22 +01:00
camo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
camo_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
html.go Rework markup link rendering (#26745) (#28803) 2024-01-16 14:41:11 +00:00
html_internal_test.go Rework markup link rendering (#26745) (#28803) 2024-01-16 14:41:11 +00:00
html_test.go Rework markup link rendering (#26745) (#28803) 2024-01-16 14:41:11 +00:00
renderer.go Rework markup link rendering (#26745) (#28803) 2024-01-16 14:41:11 +00:00
renderer_test.go Move IsReadmeFile* from modules/markup/ to modules/util (#22877) 2023-02-13 15:01:09 -05:00
sanitizer.go [GITEA] Use restricted sanitizer for repository description 2023-11-13 14:06:30 +01:00
sanitizer_test.go [GITEA] Use restricted sanitizer for repository description 2023-11-13 14:06:30 +01:00