Closed anaisbetts closed 12 years ago
Nice C, brah. :+1:
You know however, that I despise both
Can I beg you to reconsider this, before jumping in the clusterfuck that is the actual parsing code? I absolutely don't see the use case for this, besides the GitHub blog where we can already embed videos using plain HTML. I don't want videos on my READMEs, I want plaintext.
@tanoku I disagree with your opinion:
From the Markdown guide:
Markdown is a front-end to (X)HTML.
So, Markdown is not only for programmers. In fact, it's used in my school for displaying the web posts. Thus, won't still be fine to have a Sundown extension for displaying videos? That way, my Physics teacher (which knows nothing about HTML) could embed a video explaining our last homework.
Oh, and it's an extension. Some sites may use it and some others may not. But Sundown should give his users the possibility of enabling it. Don't you think?
Markdown is not only used for READMEs. This would be useful on blogs.
Why not use the image tag instead of adding extra syntax? If that's possible of course.
How about having this syntax:
![Alt Text](/path/to/poster.jpg /path/to/video1.mp4,/path/to/video2.webm)
It's (somewhat) backward's compatible to other markdown implementations.
I think that looks nicer. :)
@gampleman :+1:
@tanoku many people write blog in markdown, it would be great for them.
@gampleman yes, it definitively looks nicer :+1:
Now that the HTML5 Video tag is evolved to the point where it's reasonable to use, it'd be more awesome if we could be embedding screencasts / product demos / whatever in Markdown content.
@xpaulbettsx You already can. Just use inline HTML in the Markdown document. Something that's composed entirely of metadata doesn't really need a shorthand syntax.
That way, my Physics teacher (which [sic] knows nothing about HTML) could embed a video explaining our last homework.
@jmendeth If HTML can do it and Markdown doesn't make it any more readable -- why not just use HTML? If someone can learn Markdown, they can learn the equivalent HTML.
@vmg please, could you close or merge this pull at once? If you don't want to add this extension, it's fine, we won't shoot you. ;)
Thanks.
Let's just kill this with :fire:
Yeah, sorry I overlooked this. The video
tag is 99% metadata, so if you need to embed videos in a Markdown document, you can just paste the HTML directly. It makes little sense to have a shorthand for this.
Now that the HTML5 Video tag is evolved to the point where it's reasonable to use, it'd be more awesome if we could be embedding screencasts / product demos / whatever in Markdown content.
To do this, I've started implementing an extension to Markdown to support the video tag. I'm proposing the following syntax, which is completely up for debate / changeable:
The main difference is the ability to specify more than one URL, corresponding to the multiple