From: Waylan L. <wa...@gm...> - 2012-03-22 15:56:41
|
That sounds like a bug. Feel free to file a ticket here: https://github.com/waylan/Python-Markdown/issues On Thu, Mar 22, 2012 at 11:50 AM, Edward S. Vinyard <ed....@gm...> wrote: > 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. > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss -- ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg |