Allow escaped characters in markdown links.

Fixes #619
This commit is contained in:
Rane Brown
2019-05-08 21:30:06 -06:00
parent cde4703354
commit c05037a490
3 changed files with 13 additions and 9 deletions

View File

@ -117,8 +117,9 @@ function! vimwiki#base#resolve_link(link_text, ...)
let source_file = vimwiki#path#current_wiki_file()
endif
let link_text = a:link_text
" get rid of '\' in escaped characters in []() style markdown links
" other style links don't allow '\'
let link_text = substitute(a:link_text, '\(\\\)\(\W\)\@=', '', 'g')
let link_infos = {
\ 'index': -1,