0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 09:04:50 +01:00
gitea/modules/markup
Zettat123 2010fbe060
Fix raw wiki links (#31825)
Fix #31395

This regression is introduced by #30273. 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
common
console bump golang deps (#31422) 2024-06-24 13:26:42 +00:00
csv
external
markdown Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00
mdstripper
orgmode
camo.go
camo_test.go
html.go Fix IsObjectExist with gogit (#31790) 2024-08-09 02:40:45 +00:00
html_codepreview.go
html_codepreview_test.go
html_internal_test.go
html_link.go Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00
html_node.go Support relative paths to videos from Wiki pages (#31061) 2024-06-21 18:23:54 +00:00
html_test.go Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00
main_test.go
renderer.go
renderer_test.go
sanitizer.go
sanitizer_custom.go
sanitizer_default.go
sanitizer_default_test.go
sanitizer_description.go
sanitizer_description_test.go