0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-18 11:03:04 +01:00
gitea/modules/markup
Giteabot be302f3025
Support relative paths to videos from Wiki pages (#31061) (#31453)
Backport #31061 by @sergeyvfx

This change fixes cases when a Wiki page refers to a video stored in the
Wiki repository using relative path. It follows the similar case which
has been already implemented for images.

Test plan:
- Create repository and Wiki page
- Clone the Wiki repository
- Add video to it, say `video.mp4`
- Modify the markdown file to refer to the video using `<video
src="video.mp4">`
- Commit the Wiki page
- Observe that the video is properly displayed

Co-authored-by: Sergey Sharybin <sergey.vfx@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-06-22 00:03:31 +03:00
..
asciicast
common
console
csv Fix some pending problems (#29985) 2024-03-22 19:17:30 +08:00
external
markdown Fix markdown math brackets render problem (#31420) (#31430) 2024-06-20 17:45:08 +08:00
mdstripper
orgmode
camo_test.go
camo.go
html_codepreview_test.go Render embedded code preview by permlink in markdown (#30234) 2024-04-02 17:48:27 +00:00
html_codepreview.go Refactor AppURL usage (#30885) (#30891) 2024-05-08 13:34:43 +00:00
html_internal_test.go Fix hash render end with colon (#31319) (#31346) 2024-06-13 01:14:49 +00:00
html_link.go Fix rendered wiki page link (#31398) (#31407) 2024-06-19 11:23:24 +08:00
html_node.go Support relative paths to videos from Wiki pages (#31061) (#31453) 2024-06-22 00:03:31 +03:00
html_test.go Support relative paths to videos from Wiki pages (#31061) (#31453) 2024-06-22 00:03:31 +03:00
html.go Support relative paths to videos from Wiki pages (#31061) (#31453) 2024-06-22 00:03:31 +03:00
renderer_test.go
renderer.go Fix rendered wiki page link (#31398) (#31407) 2024-06-19 11:23:24 +08:00
sanitizer_custom.go Split sanitizer functions and fine-tune some tests (#31192) (#31200) 2024-05-31 13:54:14 +00:00
sanitizer_default_test.go Split sanitizer functions and fine-tune some tests (#31192) (#31200) 2024-05-31 13:54:14 +00:00
sanitizer_default.go Split sanitizer functions and fine-tune some tests (#31192) (#31200) 2024-05-31 13:54:14 +00:00
sanitizer_description_test.go Split sanitizer functions and fine-tune some tests (#31192) (#31200) 2024-05-31 13:54:14 +00:00
sanitizer_description.go Split sanitizer functions and fine-tune some tests (#31192) (#31200) 2024-05-31 13:54:14 +00:00
sanitizer.go Split sanitizer functions and fine-tune some tests (#31192) (#31200) 2024-05-31 13:54:14 +00:00