Fix: html conversion error from markdown (#951)
From last html conversion refactoring
This commit is contained in:
parent
ca84701c83
commit
f21245a843
@ -1721,6 +1721,7 @@ function! s:convert_file(path_html, wikifile) abort
|
|||||||
let force = 1
|
let force = 1
|
||||||
call vimwiki#html#CustomWiki2HTML(path_html, wikifile, force)
|
call vimwiki#html#CustomWiki2HTML(path_html, wikifile, force)
|
||||||
let done = 1
|
let done = 1
|
||||||
|
return ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if s:syntax_supported() && done == 0
|
if s:syntax_supported() && done == 0
|
||||||
@ -1731,15 +1732,11 @@ function! s:convert_file(path_html, wikifile) abort
|
|||||||
endif
|
endif
|
||||||
call vimwiki#path#mkdir(path_html)
|
call vimwiki#path#mkdir(path_html)
|
||||||
call writefile(html_lines, path_html.htmlfile)
|
call writefile(html_lines, path_html.htmlfile)
|
||||||
let done = 1
|
return path_html.htmlfile
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if done == 0
|
|
||||||
echomsg 'Vimwiki Error: Conversion to HTML is not supported for this syntax'
|
echomsg 'Vimwiki Error: Conversion to HTML is not supported for this syntax'
|
||||||
return ''
|
return ''
|
||||||
endif
|
|
||||||
|
|
||||||
return path_html.htmlfile
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user