gitea/modules/markup/markdown
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
..
math Fix markdown preview $$ support (#31514) 2024-06-29 23:23:47 +00:00
ast.go
convertyaml.go
goldmark.go
main_test.go
markdown.go
markdown_test.go Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00
meta.go
meta_test.go
prefixed_id.go Refactor to use UnsafeStringToBytes (#31358) 2024-06-14 01:26:33 +00:00
renderconfig.go
renderconfig_test.go
toc.go
transform_blockquote.go
transform_codespan.go
transform_heading.go Refactor to use UnsafeStringToBytes (#31358) 2024-06-14 01:26:33 +00:00
transform_image.go
transform_link.go Fix rendered wiki page link (#31398) 2024-06-18 03:09:20 +00:00
transform_list.go