diff --git a/VERSION b/VERSION index aa82682f..35a08897 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.3 (2011-12-08 09:58:39) dev +Version 1.99.3 (2011-12-08 11:01:39) dev diff --git a/gluon/contrib/markmin/markmin2html.py b/gluon/contrib/markmin/markmin2html.py index 2c3f7c8d..1cc99483 100755 --- a/gluon/contrib/markmin/markmin2html.py +++ b/gluon/contrib/markmin/markmin2html.py @@ -269,6 +269,7 @@ regex_link_popup = re.compile('\[\[(?P[^\]]*?) +(?P\S+) popup\]\]') regex_link_no_anchor = re.compile('\[\[ +(?P\S+)\]\]') regex_qr = re.compile('(?/=])qr:(?P\w+://[\w\.\-\+\?&%\/]+)',re.M) regex_embed = re.compile('(?/=])embed:(?P\w+://[\w\.\-\+\?&%\/]+)',re.M) +regex_auto_image = re.compile('(?/=])(?P\w+://[\w\.\-\+\?&%\/]+\.(jpeg|jpg|gif|png))',re.M) regex_auto_video = re.compile('(?/=])(?P\w+://[\w\.\-\+\?&%\/]+\.(mp4|mpeg|mov))',re.M) regex_auto_audio = re.compile('(?/=])(?P\w+://[\w\.\-\+\?&%\/]+\.(mp3|wav))',re.M) regex_auto = re.compile('(?/=])(?P\w+://[\w\.\-\+\?&%\/]+)',re.M) @@ -400,6 +401,7 @@ def render(text,extra={},allowed={},sep='p'): text = regex_embed.sub('', text) text = regex_qr.sub('', text) + text = regex_auto_image.sub('', text) text = regex_auto_video.sub('', text) text = regex_auto_audio.sub('', text) text = regex_auto.sub('\g', text)