md-editor-extension icon indicating copy to clipboard operation
md-editor-extension copied to clipboard

Feature Request: Inline video support (iframe + file upload)

Open yukiharadev opened this issue 4 months ago • 2 comments

A great idea

Hi, it would be really useful if Markdown could handle video directly, so the video plays inline on the rendered page instead of sending users off to another tab.

I know it’s possible to customize the renderer to handle video embeds, but I think this is a common need, not just mine. Having it as a built-in feature would save everyone from re-implementing the same thing over and over.

  1. Iframe embeds (YouTube, Vimeo, etc.)
  • Support common providers with safe inline playback.
  • Syntax example:

:::video
https://www.youtube.com/embed/xxxx
:::

  1. Local video file support (.mp4, .webm, etc.)
  • Similar to how images are handled, but renders a
  • Syntax example:

![Demo video](demo.mp4)

Why this matters:

  • Inline playback keeps users engaged on the same page.
  • Matches modern content expectations (like images and gifs, but with actual video).
  • Reduces custom boilerplate since many projects reinvent this anyway.

Thank you !

yukiharadev avatar Sep 12 '25 05:09 yukiharadev

This is a really useful idea. Native video support in Markdown would make content much more engaging and reduce boilerplate for everyone.

HuyHoangDevVN avatar Sep 12 '25 05:09 HuyHoangDevVN

Regarding video sharing links similar to YouTube, from a usability perspective, directly embedding code is more convenient than defining additional syntax. If a unified syntax is adopted, it would be difficult to define the attributes desired by users.

However, for video file links such as /xxx.mp4, I will consider a suitable solution to play them directly. And this might take a considerable amount of time.

imzbf avatar Sep 12 '25 06:09 imzbf