markdown

How can I add a video in Markdown?


Can you add a local video(mov) to a Markdown file (md)?

I have tried: [![Video](file:video.mov)


Solution

  • Depending on your markdown processor, there may be a built-in syntax. For example, in pandoc the image syntax with a video file extension (.mov, .mp4) can be used:

    ![](my_video.mov)
    

    For other processors, you can always write raw-HTML in your markdown:

    <video width="320" height="240" controls>
      <source src="video.mov" type="video/mp4">
    </video>