Menu

#20 Improper escaping of <hr>'s

open
HTML parser (6)
5
2011-10-24
2011-10-24
Anonymous
No

Line 236 in markdown.php, this line:

'([-*_])([ ]{0,2}\1){2,}' => '\\\\$0|', # hr

You've got an extra pipe at the end of that string. I don't think it should be there; it's not stripped when I run it back through PHP Markdown, so I end up with random pipes in my markup.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB