streeter / markdown-redcarpet.tmbundle

TextMate support for GitHub flavored Markdown
http://github.github.com/github-flavored-markdown/
69 stars 28 forks source link

Issue with multiple-line <script> </script> tags #19

Open lcolladotor opened 10 years ago

lcolladotor commented 10 years ago

Hi,

I'm having trouble fixing an issue where if you have a tag over multiple lines, the syntax doesn't get recognized properly.

My example is at https://gist.github.com/c837e901752bdbec7dc1

screen shot 2014-11-04 at 7 38 16 pm

Playing around a bit I see that it's related to the while condition on https://github.com/streeter/markdown-redcarpet.tmbundle/blob/master/Syntaxes/Markdown%20Redcarpet.tmLanguage#L339

It's a regular expression issue but I haven't been able to fix it.

Cheers, Leo