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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user