1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05: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 Add MAX_ROWS option for CSV rendering (#30268) 2024-06-06 16:06:59 +08:00
external
markdown Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00
mdstripper
orgmode
camo_test.go
camo.go
html_codepreview_test.go
html_codepreview.go
html_internal_test.go Fix hash render end with colon (#31319) 2024-06-12 22:35:46 +00:00
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
html.go Fix IsObjectExist with gogit (#31790) 2024-08-09 02:40:45 +00:00
main_test.go
renderer_test.go
renderer.go Fix rendered wiki page link (#31398) 2024-06-18 03:09:20 +00:00
sanitizer_custom.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00
sanitizer_default_test.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00
sanitizer_default.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00
sanitizer_description_test.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00
sanitizer_description.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00
sanitizer.go Split sanitizer functions and fine-tune some tests (#31192) 2024-05-31 13:26:01 +00:00