Python 3.6.5 (default, Mar 29 2018, 03:28:50)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
>>> from mdx_bleach.extension import BleachExtension
>>> bleach = BleachExtension()
>>> md = markdown.Markdown(extensions=[bleach])
>>> md.convert('\\!')
'<p>?33?</p>'
>>> md_no_bleach = markdown.Markdown()
>>> md_no_bleach.convert('\\!')
'<p>!</p>'
>>> import bleach
>>> bleach.clean('\\!')
'\\!'
>>> bleach.__version__
'2.1.3'
>>> markdown.__version__.version
'2.6.11'
>>> import mdx_bleach
>>> mdx_bleach.VERSION
'0.1.2'
>>>
As demonstrated, the issue only occurs when using this extension, but looking over the code I can't figure out why.
As demonstrated, the issue only occurs when using this extension, but looking over the code I can't figure out why.