evilstreak / markdown-js

A Markdown parser for javascript
7.69k stars 863 forks source link

Fixed critical error in IE8 #97

Closed PallasKatze closed 11 years ago

PallasKatze commented 11 years ago

[^] in regular expression causes "Expected ']' in regular expression" error at least in IE8 (other versions are untested). Just replaced [^] by [\s\S].

ashb commented 11 years ago

Ah oops, that just got changed recently - it was \s\S before. I'll add a comment to this to make it clear why we used the form we have.