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/markdown
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>
11 months ago
..
math Fixes #27605: inline math blocks can't be preceeded/followed by alphanumerical characters (#30175) 11 months ago
ast.go Refactor markdown attention render (#29833) 11 months ago
convertyaml.go Improve Wiki TOC (#24137) 2 years ago
goldmark.go Refactor markdown render (#30139) 11 months ago
markdown.go Refactor markdown attention render (#29984) 11 months ago
markdown_test.go Use raw Wiki links for non-renderable Wiki files (#30273) 11 months ago
meta.go Replace `interface{}` with `any` (#25686) 2 years ago
meta_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
prefixed_id.go Refactor markdown render (#30139) 11 months ago
renderconfig.go Fix task list checkbox toggle to work with YAML front matter (#25184) 2 years ago
renderconfig_test.go Improve Wiki TOC (#24137) 2 years ago
toc.go Refactor locale&string&template related code (#29165) 1 year ago
transform_blockquote.go Refactor markdown render (#30139) 11 months ago
transform_codespan.go Fix markdown color code detection (#30208) 11 months ago
transform_heading.go Refactor markdown render (#30139) 11 months ago
transform_image.go Refactor markdown render (#30139) 11 months ago
transform_link.go Use raw Wiki links for non-renderable Wiki files (#30273) 11 months ago
transform_list.go Refactor markdown render (#30139) 11 months ago