Fix: Broken TOC links format when using default syntax (Issue #981)

- Not normalising for default
- SetExt header missed a `^` in the regex so mateched the trailing ===
of === head3 ===
This commit is contained in:
Tinmarino
2020-08-12 21:39:13 -04:00
parent 212cd8e09b
commit 22d9d012ba
7 changed files with 111 additions and 37 deletions
+1
View File
@@ -170,6 +170,7 @@ function! vimwiki#u#count_first_sym(line) abort
endfunction
" Escape string for literal magic regex match
function! vimwiki#u#escape(string) abort
return escape(a:string, '~.*[]\^$')
endfunction