diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index ad1441c..e0740bb 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 @@ -155,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 ==# ""