I'm a new python-markdown user, so my apologies if this question has
an obvious answer.
Per the library reference's advice regarding safe_mode, I want to
disable attributes. When I use enable_attributes=False, however, the
first occurrence of a boldfaced or italicized word/phrase truncates
the output until the next paragraph break or heading. E.g.:
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
>>> markdown.version
'2.1.1'
>>> markdown.markdown(' a *test* ', enable_attributes=True)
u'<p>a <em>test</em> </p>'
>>> markdown.markdown(' a *test* ', enable_attributes=False)
u'<p>a </p>'
My expectation was that enable_attributes=False wouldn't change this
behavior. Am I way off?
Thanks in advance,
Ed
P.S.: See treeprocessors.py starting at line 307.
|