marijnh/CodeMirror — pull request #794 by bfrohs (2012-09-04 05:29:36+00:00)
Title: A couple bug in highlighting test code, and several improvements to Markdown mode

It looks like the highlighting test code was not using CodeMirror's `highlight()` function, but rather a modified, older version. I didn't have time to rewrite it to use CodeMirror's `highlight()` function (and not sure if it's even possible), but I did rewrite it a bit so it's up to date with the current version (and can be copied and pasted in with no changes later on).

Additionally, `cm-` was not added to all classes in the tester, so I fixed that.

As for Markdown mode, all fixes made were in response to the tests. There's still quite a few features I'd like to add, and adjustments to the highlighting, but this at least makes it so Markdown mode is mostly correct with its parsing. Only one of the tests fails now, which I should be able to fix later this week.

Sorry about throwing all of the changes into one pull request. I came across the bugs while I was working on Markdown mode, and needed the changes to be made in order for the tests to work correctly (everything kind of depends on eachother). If you need them in separate pull requests for whatever reason, just let me know, and I'll do my best to separate the commits into logical pull requests.