Open wsdjeg opened 7 years ago
@tpope hello, I have tried https://github.com/plasticboy/vim-markdown and https://github.com/gabrielelana/vim-markdown both of them are too slow when hold on j/k to move cursor. so now I want to use your plugin, and thanks for your work, but now I get a issue with it. can you fix it?
@tpope I just test this issue, and this patch fix the issue,
diff --git a/syntax/markdown.vim b/syntax/markdown.vim
index 14d288b..d2a04c5 100644
--- a/syntax/markdown.vim
+++ b/syntax/markdown.vim
@@ -64,8 +64,8 @@ syn match markdownBlockquote ">\%(\s\|$\)" contained nextgroup=@markdownBlock
syn region markdownCodeBlock start=" \|\t" end="$" contained
" TODO: real nesting
-syn match markdownListMarker "\%(\t\| \{0,4\}\)[-*+]\%(\s\+\S\)\@=" contained
-syn match markdownOrderedListMarker "\%(\t\| \{0,4}\)\<\d\+\.\%(\s\+\S\)\@=" contained
+syn match markdownListMarker "\%(\t\| \{0,8\}\)[-*+]\%(\s\+\S\)\@=" contained
+syn match markdownOrderedListMarker "\%(\t\| \{0,8}\)\<\d\+\.\%(\s\+\S\)\@=" contained
syn match markdownRule "\* *\* *\*[ *]*$" contained
syn match markdownRule "- *- *-[ -]*$" contained
I am not sure if this can be merged.
highlight error with toc, here is a picture
and here is the markdown