Ok. Wait the patch
29.07.12 01:28, Massimo Di Pierro написав(ла):
I think this is a reasonable solution. The helper MARKMIN could be smarter and
use autolinks expand_one.
On Saturday, 28 July 2012 14:14:50 UTC-5, dbdeveloper wrote:
I think, the best way is to use autolinks as a render()'s
I think this is a reasonable solution. The helper MARKMIN could be smarter
and use autolinks expand_one.
On Saturday, 28 July 2012 14:14:50 UTC-5, dbdeveloper wrote:
>
> I think, the best way is to use autolinks as a render()'s parameter (
> autolinks replaces auto parameter):
>
> def default_au
I think, the best way is to use autolinks as a render()'s parameter (autolinks
replaces auto parameter):
def default_autolinks(url):
""" default autolinks for links, pictures and
videos using video tag
"""
return '%s' % (url, url)
render(., autolinks=default_autolinks)
disa
1.2. I wrote autolinks and it is not used by anything else. We can change
the licence and - in principle - we can move the code we need in
markmin2html.py.
3. yes
4. perhaps we can pass a dict to markmin?
5. I do not think embed is documented in the book. If we silently ignore
embed and treat e
autolinks is right module. but I have some questions:
1. markmin doesn't have dependencies. Now it will be dependent on autolinks.
Solution: we can "disable" autolink if it isn't found on path. Right?
2. Autolink is LGPL, makmin is MIT/BSD/GPL. I do not understand differentiation
between them.
I think embed:http://url should be deprecated in MARKMIN.
It think if a url is found and not marked-up whether or not prefixed with
"embed:" the url should be precessed by the function
gluon/contrib/autolinks.py/expand_one(url,{})
This function uses the oembed protocol to figure out th
Before you change it, let me think about this some more...
On Thursday, 26 July 2012 17:03:35 UTC-5, dbdeveloper wrote:
>
> well, give me an example of correct iframe and embed output and I'll
> change markmin. ok?
>
> Vladyslav Kozlovskyy (Ukraine)
>
> 26.07.12 16:40, Jose написав(ла):
>
>
>
well, give me an example of correct iframe and embed output and I'll change
markmin. ok?
Vladyslav Kozlovskyy (Ukraine)
26.07.12 16:40, Jose ???(??):
El jueves, 26 de julio de 2012 02:04:21 UTC-3, dbdeveloper escribió:
Hi, Jose!
try 'iframe' instead of 'embed':
iframe:http
El jueves, 26 de julio de 2012 02:04:21 UTC-3, dbdeveloper escribió:
>
> Hi, Jose!
>
> try 'iframe' instead of 'embed':
>
> iframe:http://www.youtube.com/embed/x1w8hKTJ2Co
>
Ok Vladyslav, but I think the same as Massimo, this breaks backwards
compatibility.
Jose
--
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/
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')*
'http://www.youtube.com/embed/x1w8hKTJ2Co";
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é
--
12 matches
Mail list logo