python - markdown module has no inlinepatterns attribute -


i'm writing markdown extension, when run python command line:

>>> import markdown >>> markdown.markdown('foo --deleted-- bar', ['myextension']) 

i following error:

attributeerror: 'module' object has no attribute 'inlinepatterns' 

on line:

md.inlinepatterns.add('del', del_tag, '>not_strong') 

i've updated markdown 2.3.1 , i'm running in python 2.6. interpreter appears finding mdx_myextension.py file tracebook reflects has registered extension.

seems referencing attribute wrong name. use inlinepatterns instead of inlinepatterns.

see python markdown documentaion - extensions api


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -