'
>>> render('[[this is an image http://example.com video]]')
- ''
+ ''
>>> render('[[this is an image http://example.com audio]]')
- ''
+ ''
>>> render('[[this is a **link** http://example.com]]')
'
'
@@ -424,14 +425,14 @@ def render(text,extra={},allowed={},sep='p',URL=None,environment=None):
text = regex_image_width.sub('', text)
text = regex_image_center.sub('
', text)
text = regex_image.sub('', text)
- text = regex_video.sub('', text)
- text = regex_audio.sub('', text)
+ text = regex_video.sub('', text)
+ text = regex_audio.sub('', text)
text = regex_link_popup.sub('\g', text)
text = regex_link_no_anchor.sub('\g', text)
text = regex_link.sub('\g', text)
text = regex_qr.sub('',text)
- text = regex_embed.sub('',
- text)
+ text = regex_iframe.sub('',text)
+ text = regex_embed.sub('\g',text)
text = regex_auto_image.sub('', text)
text = regex_auto_video.sub('', text)
text = regex_auto_audio.sub('', text)