diff --git a/zephyr/lib/bugdown/__init__.py b/zephyr/lib/bugdown/__init__.py index 9057baa906..46758ed9df 100644 --- a/zephyr/lib/bugdown/__init__.py +++ b/zephyr/lib/bugdown/__init__.py @@ -33,7 +33,7 @@ class Bugdown(markdown.Extension): md.inlinePatterns.add('gravatar', Gravatar(r'!gravatar\((?P[^)]*)\)'), '_begin') # A link starts after whitespace and continues to the next whitespace. - link_regex = r'\b(?Phttps?://[^\s]+)' + link_regex = r'\b(?Phttps?://[^\s[\](){}<>]+)' md.inlinePatterns.add('autolink', AutoLink(link_regex), '_begin') # We need to re-initialize the markdown engine every 30 messages