HTML5's audio/video and Markdown

david parsons orc at pell.portland.or.us
Tue Mar 18 17:46:00 EDT 2008


In article <494EF9DF-15FE-42C0-8644-46D072EDB3C1 at gmail.com>,
Aslak Raanes <markdown-discuss at six.pairlist.net> wrote:

>Does anyone have any toughts on how one should be using <video> &

><audio> with Markdown? Using the link or the img syntax?

>

>Maybe:

>

> [a film](film.m4v)

> [an audio](audio.mp3)

>

>could create:

>

> <video src="film.m4v" controls><a href="film.m4v">a film</a></

>video>

> <audio src="audio.mp4" controls><a href="audio.m4v">an audio</a></

>audio>


If I was going to do a [][] link extension for <video> and
<audio>, I'd do something like

[horrid html 5 video](video:http://example.dom/film.m4v)

to generate

<video src="http://example.dom/film.m4v">horrid html 5 video</video>

and if someone wanted to wrap an <a>, I'd force them to do

[[horrid html 5 video](http://example.dom/film.m4v)](video:http://example.dom/film.m4v)

(under the logic of "if you're going to want a quirks mode for
browsers that don't support html five, you're going to have to do
it yourself; <video> and <audio> won't be generally useful until
a critical mass of browsers support it, and when they do it won't
be particularly useful to have the backwards compatability. And
if I 'm going to embed a video link marked as video, I'd want to
just use the html that's appropriate for it.)


-david parsons


More information about the Markdown-Discuss mailing list