WnP / vimwiki_markdown

vimwiki markdown file to html with syntax highlighting.
MIT License
63 stars 17 forks source link

"Conversion to HTML is not supported" when setting new paths #15

Closed ofefo closed 3 years ago

ofefo commented 3 years ago

I have no problem to run Vimwiki2HTML with vimiwiki_markdown with this configuration:

set nocompatible
filetype plugin on
let g:vimwiki_list = [{
                        \ 'path':'~/git/wiki',
                        \ 'path_html':'~/git/wiki/html/', 
                        \ 'syntax': 'markdown', 
                        \ 'ext': '.md', 
                        \ 'custom_wiki2html': 'vimwiki_markdown', 
                        \ 'template_ext': '.tpl'}]

I've figured out this could be a faster way to write simple entries for a blog, so I'm trying to setup a command to change the default paths temporarily using this:

let blogmode = [{
                        \ 'path':'~/git/blog/md/',
                        \ 'path_html':'~/git/blog/html/',
                        \ 'syntax': 'markdown',
                        \ 'ext': '.md',
                        \ 'custom_wiki2html': 'vimwiki_markdown',
                        \ 'template_ext': '.tpl'}]
autocmd FileType markdown map <leader>bm :w<CR>:let g:vimwiki_list = blogmode<CR>:echo "Blog mode"<CR>

But unfortunately, I keep receiving the message "Vimwiki Error: Conversion to HTML is not supported for this syntax". Am I doing something wrong?

WnP commented 3 years ago

Hi @ofefo,

Actually it's a vimwiki error so it's not related to this project, I suggest you open an issue on vimwiki directly.

Thanks