marijnh/CodeMirror — pull request #786 by bfrohs (2012-09-03 06:50:55+00:00)
Title: Add highlighting tests for Markdown mode.

As you'll notice, only 44 of the 65 tests pass. This is because, apparently, there are several edge cases that are missed (e.g. a space between brackets for links). I've checked and rechecked the tests to make sure the tests match [Markdown's documentation](http://daringfireball.net/projects/markdown/syntax) and they are not failing due to a trivial issue (e.g. asterisk in a separate span, with same class, as the text following it).

Out of the tests that *do* pass, a large number of them could be adjusted to better match other modes and help with readability (e.g. only mark the actual ID or link as `link`, instead of the brackets as well). I decided to choose my battles with this, and simply consider them as passing for the time being, while more important issues are taken care of. I'll be going back through these at some point, after the other issues have been fixed, and updating them to be more correct.