set additional custom arguments in g:vimwiki_list
(custom_wiki2html_args) which will then be passed to the appropriate custom_wiki2html script.
This commit is contained in:
parent
4a7d9a286f
commit
3ecf9c544a
@ -1394,7 +1394,8 @@ function! vimwiki#html#CustomWiki2HTML(path, wikifile, force) "{{{
|
|||||||
\ (len(VimwikiGet('template_path')) > 1 ? shellescape(expand(VimwikiGet('template_path'))) : '-'). ' '.
|
\ (len(VimwikiGet('template_path')) > 1 ? shellescape(expand(VimwikiGet('template_path'))) : '-'). ' '.
|
||||||
\ (len(VimwikiGet('template_default')) > 0 ? VimwikiGet('template_default') : '-'). ' '.
|
\ (len(VimwikiGet('template_default')) > 0 ? VimwikiGet('template_default') : '-'). ' '.
|
||||||
\ (len(VimwikiGet('template_ext')) > 0 ? VimwikiGet('template_ext') : '-'). ' '.
|
\ (len(VimwikiGet('template_ext')) > 0 ? VimwikiGet('template_ext') : '-'). ' '.
|
||||||
\ (len(VimwikiGet('subdir')) > 0 ? shellescape(s:root_path(VimwikiGet('subdir'))) : '-'))
|
\ (len(VimwikiGet('subdir')) > 0 ? shellescape(s:root_path(VimwikiGet('subdir'))) : '-'). ' '.
|
||||||
|
\ (len(VimwikiGet('custom_wiki2html_args')) > 0 ? VimwikiGet('custom_wiki2html_args') : '-'))
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
|
||||||
function! s:convert_file(path_html, wikifile) "{{{
|
function! s:convert_file(path_html, wikifile) "{{{
|
||||||
|
@ -2161,8 +2161,11 @@ The following arguments, in this order, are passed to the script:
|
|||||||
10. root_path : a count of ../ for pages buried in subdirs
|
10. root_path : a count of ../ for pages buried in subdirs
|
||||||
For example, if you have wikilink [[dir1/dir2/dir3/my page in a subdir]]
|
For example, if you have wikilink [[dir1/dir2/dir3/my page in a subdir]]
|
||||||
then this argument is '../../../'.
|
then this argument is '../../../'.
|
||||||
|
11. custom_args : custom arguments (can be defined in g:vimwiki_list as
|
||||||
|
'custom_wiki2html_args' parameter) that will be passed to the conversion
|
||||||
|
script.
|
||||||
|
|
||||||
Options 7-10 are experimental and may change in the future. If any of these
|
Options 7-11 are experimental and may change in the future. If any of these
|
||||||
parameters is empty, a hyphen "-" is passed to the script in its place.
|
parameters is empty, a hyphen "-" is passed to the script in its place.
|
||||||
|
|
||||||
For an example and further instructions, refer to the following script:
|
For an example and further instructions, refer to the following script:
|
||||||
|
Loading…
Reference in New Issue
Block a user