aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-02-21 03:46:39 +0000
committerWaylan Limberg <waylan@gmail.com>2008-02-21 03:46:39 +0000
commit17c3abd88e11ae4cca4f1e3b49967c165edb94e5 (patch)
treea388f797fa36057143b1ea5792d1da24cc075fd8
parent430450a2cc7c71f9c311ab44554943e1a138dd87 (diff)
downloadmarkdown-17c3abd88e11ae4cca4f1e3b49967c165edb94e5.tar.gz
markdown-17c3abd88e11ae4cca4f1e3b49967c165edb94e5.tar.bz2
markdown-17c3abd88e11ae4cca4f1e3b49967c165edb94e5.zip
Added https and ftp to autolinks. Fixes [1897830].
-rw-r--r--markdown.py2
1 files changed, 1 insertions, 1 deletions
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://[^>]*)>' # <http://www.123.com>
+AUTOLINK_RE = r'<((?:f|ht)tps?://[^>]*)>' # <http://www.123.com>
AUTOMAIL_RE = r'<([^> \!]*@[^> ]*)>' # <me@example.com>
#HTML_RE = r'(\<[^\>]*\>)' # <...>
HTML_RE = r'(\<[a-zA-Z/][^\>]*\>)' # <...>