This may be considered a breaking of backward compatibility and we need to think about it.
Originally the emebed:... attribute was supposed to check if the link supports the oembed protocol and determine what to do (iframe or not) automatically. There is actually code in web2py (gluon/contrib/autolinks.py) to do this automatically but it not yet used by markmin. On Thursday, 26 July 2012 00:04:21 UTC-5, dbdeveloper wrote: > > Hi, Jose! > > try 'iframe' instead of 'embed': > > iframe:http://www.youtube.com/embed/x1w8hKTJ2Co > > > In 1.99.7 embed looks like iframe, and iframe is not used at all (it's a > new feature): > > *>>> markmin2html('embed:http://www.youtube.com/embed/x1w8hKTJ2Co')* > '<p><iframe > src="http://www.youtube.com/embed/x1w8hKTJ2Co"<http://www.youtube.com/embed/x1w8hKTJ2Co>frameborder="0" > allowfullscreen></iframe></p>' > > *>>> markmin2html('iframe:http://www.youtube.com/embed/x1w8hKTJ2Co')* > '<p>iframe:<a > href="http://www.youtube.com/embed/x1w8hKTJ2Co"<http://www.youtube.com/embed/x1w8hKTJ2Co> > >http://www.youtube.com/embed/x1w8hKTJ2Co</a></p> > > > in the trunk embed is simply a link with class='embed'. We need css rule > to make this link works: > > *>>> markmin2html('embed:http://www.youtube.com/embed/x1w8hKTJ2Co')* > '<p><a > href="http://www.youtube.com/embed/x1w8hKTJ2Co"<http://www.youtube.com/embed/x1w8hKTJ2Co>class="embed"> > http://www.youtube.com/embed/x1w8hKTJ2Co</a></p>' > > *>>> markmin2html('iframe:http://www.youtube.com/embed/x1w8hKTJ2Co')* > '<p><iframe > src="http://www.youtube.com/embed/x1w8hKTJ2Co"<http://www.youtube.com/embed/x1w8hKTJ2Co>frameborder="0" > allowfullscreen></iframe></p>' > > > Vladyslav Kozlovskyy (Ukraine) > > > 26.07.12 05:07, Jose написав(ла): > > Hi all > > From the book: > https://web2py.com/books/default/chapter/29/5 > > The following is not working > > embed:http://www.youtube.com/embed/x1w8hKTJ2Co > > show me the url and not the video > > I'm using the trunk version, in version 1.99.7 works well. > > José > > -- > > > > > > --