From d6bc2f9750779c14c9be1db12903aa58012627e6 Mon Sep 17 00:00:00 2001 From: BaksiLi Date: Tue, 17 Mar 2020 23:00:17 +0000 Subject: [PATCH 1/2] Fix search pattern To accept multi-line blockquotes ending with a blank line. --- ftplugin/markdown.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index ad1441c..60264cf 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -85,6 +85,7 @@ function! s:GetCodeSections() let l:codeSections = {} call extend(l:codeSections, GetSections("^```", "^```")) + call extend(l:codeSections, GetSections("^>", "^\\n")) call extend(l:codeSections, GetSections("^{% highlight", "^{% endhighlight")) return l:codeSections From a5d97a706f30be19341ae0237e33396b8dbf95c7 Mon Sep 17 00:00:00 2001 From: BaksiLi Date: Tue, 17 Mar 2020 23:21:51 +0000 Subject: [PATCH 2/2] Fix Japanese in header index credit @walkersumida . --- ftplugin/markdown.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 60264cf..e0740bb 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -156,7 +156,7 @@ function! s:GetHeadingLinkGFM(headingName) " chinese chars are removed. " \\%#=0: allow this pattern to use the regexp engine he wants. Having " `set re=1` in the vimrc could break this behavior. cf. issue #19 - let l:headingLink = substitute(l:headingLink, "\\%#=0[^[:alnum:]\u00C0-\u00FF\u0400-\u04ff\u4e00-\u9fbf _-]", "", "g") + let l:headingLink = substitute(l:headingLink, "\\%#=0[^[:alnum:]々〇〻\u2E80-\u2FDF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD87F][\uDC00-\uDFFF _-]", "", "g") let l:headingLink = substitute(l:headingLink, " ", "-", "g") if l:headingLink ==# ""