You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/markup
Rafael c1f76aea45
Use raw Wiki links for non-renderable Wiki files (#30273)
In Wiki pages, short-links created to local Wiki files were always
expanded as regular Wiki Links. In particular, if a link wanted to point
to a file that Gitea doesn't know how to render (e.g, a .zip file), a
user following the link would be silently redirected to the Wiki's home
page.

This change makes short-links* in Wiki pages be expanded to raw wiki
links, so these local wiki files may be accessed without manually
accessing their URL.

* only short-links ending in a file extension that isn't renderable are
affected.

Closes #27121.

Signed-off-by: Rafael Girão <rafael.s.girao@tecnico.ulisboa.pt>
Co-authored-by: silverwind <me@silverwind.io>
10 months ago
..
asciicast Support asciicast files as new markup (#22448) 2 years ago
common Make `user-content-* ` consistent with github (#26388) 2 years ago
console Add context when rendering labels or emojis (#23281) 2 years ago
csv Fix some pending problems (#29985) 11 months ago
external Rework markup link rendering (#26745) 1 year ago
markdown Use raw Wiki links for non-renderable Wiki files (#30273) 10 months ago
mdstripper Implement FSFE REUSE for golang files (#21840) 2 years ago
orgmode fix: rendering internal file links in org (#29669) 11 months ago
camo.go Implement FSFE REUSE for golang files (#21840) 2 years ago
camo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
html.go Use raw Wiki links for non-renderable Wiki files (#30273) 10 months ago
html_codepreview.go Render embedded code preview by permlink in markdown (#30234) 10 months ago
html_codepreview_test.go Render embedded code preview by permlink in markdown (#30234) 10 months ago
html_internal_test.go Use relative links for commits, mentions, and issues in markdown (#29427) 11 months ago
html_test.go Use raw Wiki links for non-renderable Wiki files (#30273) 10 months ago
renderer.go Render embedded code preview by permlink in markdown (#30234) 10 months ago
renderer_test.go Move `IsReadmeFile*` from `modules/markup/` to `modules/util` (#22877) 2 years ago
sanitizer.go Fix code block style for code preview (#30298) 10 months ago
sanitizer_test.go Use restricted sanitizer for repository description (#28141) 1 year ago