Commit d9d19f0d by benjaoming

fix python 2.5 unknown elementree method

parent f9a46f1c
......@@ -74,7 +74,8 @@ class UrlizePattern(markdown.inlinepatterns.Pattern):
el = markdown.util.etree.Element("a")
el.set('href', url)
el.set('target', '_blank')
el.extend([icon, span_text])
el.append(icon)
el.append(span_text)
return el
class UrlizeExtension(markdown.Extension):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment