From 17c3abd88e11ae4cca4f1e3b49967c165edb94e5 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 21 Feb 2008 03:46:39 +0000 Subject: Added https and ftp to autolinks. Fixes [1897830]. --- markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown.py b/markdown.py index c83cf5c..1c6587b 100644 --- a/markdown.py +++ b/markdown.py @@ -706,7 +706,7 @@ IMAGE_LINK_RE = r'\!' + BRK + r'\s*\(([^\)]*)\)' # ![alttxt](http://x.com/) REFERENCE_RE = NOIMG + BRK+ r'\s*\[([^\]]*)\]' # [Google][3] IMAGE_REFERENCE_RE = r'\!' + BRK + '\s*\[([^\]]*)\]' # ![alt text][2] NOT_STRONG_RE = r'( \* )' # stand-alone * or _ -AUTOLINK_RE = r'<(http://[^>]*)>' # +AUTOLINK_RE = r'<((?:f|ht)tps?://[^>]*)>' # AUTOMAIL_RE = r'<([^> \!]*@[^> ]*)>' # #HTML_RE = r'(\<[^\>]*\>)' # <...> HTML_RE = r'(\<[a-zA-Z/][^\>]*\>)' # <...> -- cgit v1.2.3