|
From: Yuri T. <qar...@gm...> - 2008-07-02 06:22:26
|
> I solved this issue already, now all of those examples works: > > [*test*](http://example.com) > *[test](http://example.com)* > **[*test*](http://example.com)** > __*[test](http://example.com)*__ This works too. You win. But let's not go further into the land of weird character combinations as placeholders. I am of course myself guilty of starting this with my handling of HTML, but I was hoping to do less of this in the future, not more. How about using unprintable control characters instead of weird combinatiosn of letters, and sanitizing user input from those characters? I tried doing this for the version in mainline for HTML placeholders: http://gitorious.org/projects/python-markdown/repos/mainline/commits/bb00fc58 Perhaps you could use: self.prefix = START+"node"+NULL self.suffix = END+"node"+NULL We could more generally go for this patter for placeholders of type <type>: START+<type>+NULL+<id>+END+<type>+NULL - yuri -- http://sputnik.freewisdom.org/ |