-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Incorrect processing of "_" #37
Comments
Can you tell me how #16 works for you? I never got around to thoroughly evaluating it. |
I think this issue is a duplicate of #27. |
Yeah this stuff is super flaky and implementation dependent. If you're writing markdown, you should just always escape underscores to be safe. I'm open to improvements in the highlighting but I don't think there's a "correct" solution. |
I agree that I don't think there's a correct solution. I do however find highlighting an internal underscore as an error to be quite distracting. I disabled this behaviour with the following patch: diff --git a/markdown.vim.orig b/markdown.vim
index 068115e..030fcdb 100644
--- a/markdown.vim.orig
+++ b/markdown.vim
@@ -93,7 +93,7 @@ if main_syntax ==# 'markdown'
endif
syn match markdownEscape "\\[][\\`*_{}()#+.!-]"
-syn match markdownError "\w\@<=_\w\@="
+syn match markdownError "\w\@<=\w\@="
hi def link markdownH1 htmlH1
hi def link markdownH2 htmlH2 |
Result: "_" is a underscore. This is undeline.
But with vim-markdown:
The text was updated successfully, but these errors were encountered: