Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind self._safe_protocols to extras #257

Open
Wtower opened this issue Jun 10, 2017 · 0 comments
Open

Bind self._safe_protocols to extras #257

Wtower opened this issue Jun 10, 2017 · 0 comments

Comments

@Wtower
Copy link

Wtower commented Jun 10, 2017

In:

https://github.com/trentm/python-markdown2/blob/master/lib/markdown2.py#L1274

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

I would recommend that this is not hard-coded but rather there is an extra for it.

Alternatively, I would recommend to allow additional URL schemes such as mailto and tel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant