Skip to content

keep video html5 tags valid in markdown #5448

Closed
@laoshaw

Description

@laoshaw

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?

Activity

stale

stale commented on Jan 31, 2019

@stale

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.

uberhalit

uberhalit commented on Feb 2, 2019

@uberhalit

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)

added
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implemented
and removed on Feb 7, 2019
6543

6543 commented on Sep 6, 2020

@6543
Member

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

laoshaw

laoshaw commented on Sep 6, 2020

@laoshaw
Author

[![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.

wxiaoguang

wxiaoguang commented on Apr 25, 2023

@wxiaoguang
Contributor

After #22892 , the tag is kept.

locked as resolved and limited conversation to collaborators on Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lunny@lafriks@wxiaoguang@laoshaw@uberhalit

        Issue actions

          keep video html5 tags valid in markdown · Issue #5448 · go-gitea/gitea