Wenzil / mdx_bleach

Python-Markdown extension to sanitize the output of untrusted Markdown documents.
MIT License
13 stars 8 forks source link

Support allowed protocols from bleach 1.5 #1

Closed lphoward closed 7 years ago

lphoward commented 7 years ago

Beginning in bleach 1.5, a parameter (protocols) is added to clean, which creates an incompatibility with mdx_bleach since it uses positional calling syntax. This version of bleach will be installed with your version requirement, and so mdx_bleach will fail.

I have added support for this parameter and protocol whitelisting to mdx_bleach. Thanks for creating mdx_bleach!

Regards, lph