From: jordan Date: Sun, 27 Mar 2011 22:38:38 +0000 (+0000) Subject: #OSQA-602, the markdown syntax ** now doesn't interfer with the urlize extension. X-Git-Tag: live~387 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/90d84bbc17ac333184691b48a9b4941ed7529a87 #OSQA-602, the markdown syntax ** now doesn't interfer with the urlize extension. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@909 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/markdownext/mdx_urlize.py b/forum/markdownext/mdx_urlize.py index 94fa516..b323531 100644 --- a/forum/markdownext/mdx_urlize.py +++ b/forum/markdownext/mdx_urlize.py @@ -5,7 +5,7 @@ URLIZE_RE = '(%s)' % '|'.join([ r'<(?:f|ht)tps?://[^>]*>', r'\b(?:f|ht)tps?://[^)<>\s]+[^.,)<>\s]', r'\bwww\.[^)<>\s]+[^.,)<>\s]', - r'[^(<\s]+\.(?:com|net|org)\b', + r'[^*(<\s]+\.(?:com|net|org)\b', ]) class UrlizePattern(markdown.inlinepatterns.Pattern):