Skip to content

Commit

Permalink
Match .md extension in backlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-h21 committed May 25, 2020
1 parent e3cec6e commit fa17f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/zettel/vimwiki.vim
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if vimwiki#vars#get_wikilocal('syntax') ==? 'markdown'
let s:header_format = "%s: %s"
let s:header_delimiter = "---"
let s:insert_mode_title_format = "``l"
let s:grep_link_pattern = "/(%s)/"
let s:grep_link_pattern = '/\(%s\.\{-}m\{-}d\{-}\)/' " match filename in parens. including optional .md extension
else
let s:link_format = "[[%link|%title]]"
let s:link_stub = "[[%link|%title]]"
Expand Down

0 comments on commit fa17f98

Please sign in to comment.