1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
gitea/modules/markup
Zettat123 2010fbe060
Fix raw wiki links ()
Fix 

This regression is introduced by . To find out how GitHub handles
this case, I did [some
tests](https://github.com/go-gitea/gitea/issues/31395#issuecomment-2278929115).

I use redirect in this PR instead of checking if the corresponding `.md`
file exists when rendering the link because GitHub also uses redirect.
With this PR, there is no need to resolve the raw wiki link when
rendering a wiki page. If a wiki link points to a raw file, access will
be redirected to the raw link.
2024-08-16 20:40:51 +08:00
..
asciicast Support asciicast files as new markup () 2023-01-18 08:46:58 +08:00
common Make user-content-* consistent with github () 2023-08-09 09:30:31 +00:00
console bump golang deps () 2024-06-24 13:26:42 +00:00
csv Add MAX_ROWS option for CSV rendering () 2024-06-06 16:06:59 +08:00
external Rework markup link rendering () 2024-01-15 08:49:24 +00:00
markdown Fix raw wiki links () 2024-08-16 20:40:51 +08:00
mdstripper Resolve lint for unused parameter and unnecessary type arguments () 2024-04-29 08:47:56 +00:00
orgmode fix: rendering internal file links in org () 2024-03-10 18:30:14 +02:00
camo_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
camo.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
html_codepreview_test.go Render embedded code preview by permlink in markdown () 2024-04-02 17:48:27 +00:00
html_codepreview.go Refactor AppURL usage () 2024-05-07 08:26:13 +00:00
html_internal_test.go Fix hash render end with colon () 2024-06-12 22:35:46 +00:00
html_link.go Fix raw wiki links () 2024-08-16 20:40:51 +08:00
html_node.go Support relative paths to videos from Wiki pages () 2024-06-21 18:23:54 +00:00
html_test.go Fix raw wiki links () 2024-08-16 20:40:51 +08:00
html.go Fix IsObjectExist with gogit () 2024-08-09 02:40:45 +00:00
main_test.go Use repo as of renderctx's member rather than a repoPath on metas () 2024-05-30 07:04:01 +00:00
renderer_test.go Move IsReadmeFile* from modules/markup/ to modules/util () 2023-02-13 15:01:09 -05:00
renderer.go Fix rendered wiki page link () 2024-06-18 03:09:20 +00:00
sanitizer_custom.go Split sanitizer functions and fine-tune some tests () 2024-05-31 13:26:01 +00:00
sanitizer_default_test.go Split sanitizer functions and fine-tune some tests () 2024-05-31 13:26:01 +00:00
sanitizer_default.go Split sanitizer functions and fine-tune some tests () 2024-05-31 13:26:01 +00:00
sanitizer_description_test.go Split sanitizer functions and fine-tune some tests () 2024-05-31 13:26:01 +00:00
sanitizer_description.go Split sanitizer functions and fine-tune some tests () 2024-05-31 13:26:01 +00:00
sanitizer.go Split sanitizer functions and fine-tune some tests () 2024-05-31 13:26:01 +00:00