Skip to content

Commit

Permalink
WIP trentm#257: Add more URL schemes to safe protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
Wtower committed Jun 10, 2017
1 parent d42d433 commit db79bda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/markdown2.py
Expand Up @@ -1271,7 +1271,8 @@ def _extract_url_and_title(self, text, start):
url = self._strip_anglebrackets.sub(r'\1', url)
return url, title, end_idx

_safe_protocols = re.compile(r'(https?|ftp):', re.I)
_safe_protocols = re.compile(r'(https?|ftp|mailto|tel):', re.I)

def _do_links(self, text):
"""Turn Markdown link shortcuts into XHTML <a> and <img> tags.
Expand Down

0 comments on commit db79bda

Please sign in to comment.