1
0
Fork 0
forgejo/modules/markup
Gusted 65b9a959b8
[BUG] Restrict when to make link absolute in markdown
- In markdown, links are proccessed to be made absolute against the
relevant base in that context. Such that `./src` will be transformed
into `http://example.com/owner/repo/src/branch/main/src`.
- Don't try to make the link absolute if the link has a schema that's
defined in `[markdown].CUSTOM_URL_SCHEMES`, because they can't be made
absolute and doing so could lead to problems (see test case, double
slash was transformed to single slash).
- Adds unit test.
- Resolves https://codeberg.org/Codeberg/Community/issues/1489
2024-02-19 20:56:00 +01:00
..
asciicast
common [GITEA] test markdown CleanValue to prevent regression 2024-02-05 16:09:41 +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) 2024-01-15 08:49:24 +00:00
markdown [BUG] Restrict when to make link absolute in markdown 2024-02-19 20:56:00 +01:00
mdstripper
orgmode [BUG] Fix relative links on orgmode 2024-02-18 21:09:35 +01:00
camo.go
camo_test.go
html.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
html_internal_test.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
html_test.go Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
renderer.go Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
renderer_test.go
sanitizer.go Add alert blocks in markdown (#29121) 2024-02-17 18:04:55 +01:00
sanitizer_test.go Use restricted sanitizer for repository description (#28141) 2023-11-23 16:34:25 +00:00