forgejo-federation/modules/markup/markdown
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
..
callout Restore compatibility with the legacy GitHub callout syntax 2024-02-17 18:35:45 +01:00
math [GITEA] Require Latex code to have a end sequence 2024-02-05 16:09:41 +01:00
ast.go modules/markup: Lift out the GitHub callout transformer 2024-02-17 18:04:55 +01:00
convertyaml.go Improve Wiki TOC (#24137) 2023-04-17 15:05:19 -04:00
goldmark.go [BUG] Restrict when to make link absolute in markdown 2024-02-19 20:56:00 +01:00
markdown.go Restore compatibility with the legacy GitHub callout syntax 2024-02-17 18:35:45 +01:00
markdown_test.go [BUG] Restrict when to make link absolute in markdown 2024-02-19 20:56:00 +01:00
meta.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
meta_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
renderconfig.go Fix task list checkbox toggle to work with YAML front matter (#25184) 2023-06-13 14:44:47 +08:00
renderconfig_test.go Improve Wiki TOC (#24137) 2023-04-17 15:05:19 -04:00
toc.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00