Skip to content

Bind self._safe_protocols to extras #257

Description

@Wtower

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions