Skip to content

Bind self._safe_protocols to extras #257

@Wtower

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.

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