Here is an example of a code block that is processed correctly by markdown, but is not correctly scoped in TextMate.
* level 1
def test(): pass
The def test() line should be scoped markup.raw.block.markdown, but instead is meta.paragraph.list.markdown. According to Gruber: To put a code block within a list item, the code block needs to be indented *twice* — 8 spaces or two tabs: The spec doesn't say, but if you put a code block inside a level 2 list then you have to indent your code 12
Brad
Brad Miller wrote:
Here is an example of a code block that is processed correctly by markdown, but is not correctly scoped in TextMate.
level 1
def test(): pass
Yes, such problems are well known, and the only way to fix them is to vastly increase the complexity of the markdown grammar (and still probably miss many cases), or else get some new parsing technology. I'm hoping TM2 makes this sort of thing easier to do.
-Jacob