keep video html5 tags valid in markdown #2601

Closed
opened 2025-11-02 04:41:42 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @laoshaw on GitHub (Dec 2, 2018).

at the moment the video-html5-tag is removed from markdown when it's rendered to html5 page, can we keep it so that we can embed video files directly in markdown and watch it from gitea?

Originally created by @laoshaw on GitHub (Dec 2, 2018). at the moment the video-html5-tag is removed from markdown when it's rendered to html5 page, can we keep it so that we can embed video files directly in markdown and watch it from gitea?
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 04:41:42 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 31, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 31, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@uberhalit commented on GitHub (Feb 2, 2019):

It seems like it's not possible to embed a video in markdown. The workaround is pretty bad tbh and does not work as intended with local files: [![video](data/thumbnail.png)](data/video.mp4) won't link to the raw video but instead to the gitea page of the video resource. Workaround to the workaround:
[![video](data/thumbnail.png)](../../../raw/branch/master/data/video.mp4)

@uberhalit commented on GitHub (Feb 2, 2019): It seems like it's not possible to embed a video in markdown. The workaround is pretty bad tbh and does not work as intended with local files: `[![video](data/thumbnail.png)](data/video.mp4)` won't link to the raw video but instead to the gitea page of the video resource. Workaround to the workaround: `[![video](data/thumbnail.png)](../../../raw/branch/master/data/video.mp4)`
Author
Owner

@6543 commented on GitHub (Sep 6, 2020):

@laoshaw can you test if this is still the case?

@6543 commented on GitHub (Sep 6, 2020): @laoshaw can you test if this is still the case?
Author
Owner

@laoshaw commented on GitHub (Sep 6, 2020):

[![video](data/thumbnail.png)](data/video.mp4) will jump to a new gitea page and you can play video.mp4 from there, so not direct embed video in gitea but a workaround.

for [![video](data/thumbnail.png)](../../../raw/branch/master/data/video.mp4) it does not jump to a new page, instead it downloads the file directly.

the best still will be "video" tag support, before then I will use the first option here to get by.

@laoshaw commented on GitHub (Sep 6, 2020): `[![video](data/thumbnail.png)](data/video.mp4)` will jump to a new gitea page and you can play video.mp4 from there, so not direct embed video in gitea but a workaround. for `[![video](data/thumbnail.png)](../../../raw/branch/master/data/video.mp4)` it does not jump to a new page, instead it downloads the file directly. the best still will be "video" tag support, before then I will use the first option here to get by.
Author
Owner

@wxiaoguang commented on GitHub (Apr 25, 2023):

After https://github.com/go-gitea/gitea/pull/22892 , the tag is kept.

@wxiaoguang commented on GitHub (Apr 25, 2023): After https://github.com/go-gitea/gitea/pull/22892 , the tag is kept.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2601