mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
vim-patch:fb8f31ea7d7f (#28356)
runtime(doc): document pandoc compiler and enable configuring arguments
closes: vim/vim#14550
fb8f31ea7d
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
This commit is contained in:
parent
8c970d3403
commit
b4ddee1116
@ -46,6 +46,7 @@ execute 'CompilerSet makeprg=pandoc\ --standalone' .
|
||||
\ '\ --metadata\ title=%:t:r:S' .
|
||||
\ '\ --metadata\ lang=' . matchstr(&spelllang, '^\a\a') .
|
||||
\ '\ --from=' . s:PandocFiletype(&filetype) .
|
||||
\ '\ ' . escape(get(b:, 'pandoc_compiler_args', get(g:, 'pandoc_compiler_args', '')), ' ') .
|
||||
\ '\ --output\ %:r:S.$*\ %:S'
|
||||
|
||||
CompilerSet errorformat="%f",\ line\ %l:\ %m
|
||||
|
@ -1282,6 +1282,15 @@ g:compiler_gcc_ignore_unmatched_lines
|
||||
commands run from make are generating false
|
||||
positives.
|
||||
|
||||
PANDOC *quickfix-pandoc* *compiler-pandoc*
|
||||
|
||||
The Pandoc compiler plugin expects that an output file type extension is
|
||||
passed to make, say :make html or :make pdf.
|
||||
|
||||
Additional arguments can be passed to pandoc:
|
||||
|
||||
- either by appending them to make, say `:make html --self-contained` .
|
||||
- or setting them in `b:pandoc_compiler_args` or `g:pandoc_compiler_args`
|
||||
|
||||
PERL *quickfix-perl* *compiler-perl*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user