[TxMt] Markdown code blocks not correctly scoped inside lists

Brad Miller bmiller at luther.edu
Tue Sep 4 02:39:11 UTC 2007

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():

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 Miller
Assistant Professor, Computer Science
Luther College
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070903/a323e821/attachment.html>

More information about the textmate mailing list