| @@ -422,7 +422,7 @@ function! s:tag_wikilink(value) "{{{ | |||||||
|     elseif link_infos.scheme ==# 'local' |     elseif link_infos.scheme ==# 'local' | ||||||
|       let html_link = vimwiki#path#relpath(fnamemodify(s:current_html_file, |       let html_link = vimwiki#path#relpath(fnamemodify(s:current_html_file, | ||||||
|             \ ':h'), link_infos.filename) |             \ ':h'), link_infos.filename) | ||||||
|     else |     elseif link_infos.scheme =~# '\mwiki\d\+\|diary' | ||||||
|       " wiki links are always relative to the current file |       " wiki links are always relative to the current file | ||||||
|       let html_link = vimwiki#path#relpath( |       let html_link = vimwiki#path#relpath( | ||||||
|             \ fnamemodify(s:current_wiki_file, ':h'), |             \ fnamemodify(s:current_wiki_file, ':h'), | ||||||
| @@ -430,6 +430,8 @@ function! s:tag_wikilink(value) "{{{ | |||||||
|       if html_link !~ '\m/$' |       if html_link !~ '\m/$' | ||||||
|         let html_link .= '.html' |         let html_link .= '.html' | ||||||
|       endif |       endif | ||||||
|  |     else " other schemes, like http, are left untouched | ||||||
|  |       let html_link = link_infos.filename | ||||||
|     endif |     endif | ||||||
|  |  | ||||||
|     " generate html output |     " generate html output | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user