Video syntax
David Chambers
david.chambers.05 at gmail.com
Thu Sep 16 00:27:57 EDT 2010
On 16 September 2010 13:32, Waylan Limberg <waylan at gmail.com> wrote:
An interesting thought just occurred to be when re-reading this. Why do you
> need any special syntax at all? Why not just:
> [Soda Pop Stop](http://www.youtube.com/v/gPbh6Ru7VVM )
> Just parse the urls for "youtube.com" (or "vimeo" etc) and when
> found, convert to an appropriate object. It's easy, simple and introduces
> no new syntax of any kind.
Brilliant suggestion, Waylan! I'd been thinking that providing a default
replacement for unrecognized video hosts would be helpful (the `[Vv]ideo:`
syntax would enable this), but you've convinced me otherwise. By using
standard link syntax, the fact that Mango will replace a link to a YouTube
video with the markup necessary to embed that video will be a magical
special case, whereas using `[Vv]ideo:` would set the unreasonable
expectation (as you so rightly point out) that any video should work.
Thanks everyone, for your input. I'll run with the standard link approach,
and add to Mango special rules for handling youtube.com video links.
David
On 16 September 2010 13:32, Waylan Limberg <waylan at gmail.com> wrote:
> On Wed, Sep 15, 2010 at 9:24 PM, Waylan Limberg <waylan at gmail.com> wrote:
> > While I realize youtube can be extracted from parsing the url, by
>
> An interesting thought just occurred to be when re-reading this. Why
> do you need any special syntax at all? Why not just:
>
> [Soda Pop Stop](http://www.youtube.com/v/gPbh6Ru7VVM )
>
> Just parse the urls for "youtube.com" (or "vimeo" etc) and when found,
> convert to an appropriate object. It's easy, simple and introduces no
> new syntax of any kind.
>
> --
> ----
> \X/ /-\ `/ |_ /-\ |\|
> Waylan Limberg
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss at six.pairlist.net
> http://six.pairlist.net/mailman/listinfo/markdown-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20100916/b2c0d337/attachment.htm>
More information about the Markdown-Discuss
mailing list