0

I am aware of several other questions on the seemingly related topic (e.g., this one), but I would like to know if or how the following can be achieved.

Setup

Observed Behavior

  • When I access the GitHub repository page, it renders the video URI as a <video/> element in HTML.
    • This seems only to be the case for assets uploaded via GitHub, i.e., other external links do not appear to get the same treatment. For clarity, here is the generated HTML:
<video 
    src="https://user-images.githubusercontent.com/20051042/241174616-764d3ae0-c3d8-4b30-97c5-b6a8bec805d5.mp4" 
    data-canonical-src="https://user-images.githubusercontent.com/20051042/241174616-764d3ae0-c3d8-4b30-97c5-b6a8bec805d5.mp4" 
    ...   
>
</video>
  • However, when I access the GitHub Pages for the repository, the URI is displayed as plain text, which makes sense.

Desired Behavior

Is there any way to get the GitHub Pages to treat the URI in the README.md the same way as GitHub does (i.e., to render it as a <video/> element?

My current workaround is to replace the URI in the README.md with the generated </video> element, as seen on the video-tag branch of the sample repository.

Mihai
  • 2,807
  • 4
  • 28
  • 53

0 Answers0