Permalink
Browse files

Fix #19, compatible with settings `regexpengine=1`

  • Loading branch information...
1 parent 12e6683 commit 1316665cab3cda3aab41eb23fe5e8be70b3fc276 @mzlogin committed Nov 21, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 ftplugin/markdown.vim
@@ -102,7 +102,7 @@ function! s:GetHeadingLinkGFM(headingName)
let l:headingLink = tolower(a:headingName)
let l:headingLink = substitute(l:headingLink, "\\%^_\\+\\|_\\+\\%$", "", "g")
- let l:headingLink = substitute(l:headingLink, "[^[:alnum:]\u4e00-\u9fbf _-]", "", "g")
+ let l:headingLink = substitute(l:headingLink, "\\%#=0[^[:alnum:]\u4e00-\u9fbf _-]", "", "g")
let l:headingLink = substitute(l:headingLink, " ", "-", "g")
if l:headingLink ==# ""

0 comments on commit 1316665

Please sign in to comment.