Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Inlines broke text or raise TemplateSyntaxError on some texts #11

svetlyak40wt opened this Issue · 0 comments

1 participant


On my site, I use markdown along with basic.inlines. And some times Inlines broke my page in two ways.

First, if text contains some URL in markdown notation, like this one <;, then Inlines strip all other texts.

Second, if text contan something that looks like a html tag, then Inlines raise an exception TemplateSyntaxError. You can test this behaviour on that piece of text:

class Accessor(object):
    def __repr__(self):
        return '<Element %s>' % self.xml.tag

I think, that problem is in the BeautifulSoup. As fix, you can introduce another filter which will use django templates to parse text and replace {% inline blah blah blah %} tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.