-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax highlighting for :markdown filter is too greedy #16
Comments
Here's another case where the highlighting for the
|
In the "not greedy enough case," the Markdown highlighting continues if and only if the blank line between the two paragraphs is indented. Jade, however, doesn't care whether it's indented or not. |
Thanks TrevorBurnham for pointing out that inserting intended blank lines "fixes" this behavior. This is at least a workaround. |
Apparently this is caused by Markdown's treatment of any indented text as raw Markdown's Language Grammar, lines 126~130: raw_block = {
begin = '(^|\G)([ ]{4}|\t)';
name = 'markup.raw.block.markdown';
while = '(^|\G)([ ]{4}|\t)';
}; (If you're not fluent in regex, what that says, as best as I can tell, is that I'm not sure why the
(TextMate will automatically create a copy of your Jade bundle at This still doesn't restore Markdown's syntax highlighting, though. |
Here's a test case:
This renders as
http://cl.ly/030K0s3J1D1g3l0n1v2v
Jade correctly interprets the
p
as being a separate element, not part of the Markdown, so the highlighting is inaccurate.The text was updated successfully, but these errors were encountered: