Skip to content

Commit fb8f31e

Browse files
Konfektchrisbra
authored andcommitted
runtime(doc): document pandoc compiler and enable configuring arguments
closes: #14550 Signed-off-by: Konfekt <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent bce51d9 commit fb8f31e

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

runtime/compiler/pandoc.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ execute 'CompilerSet makeprg=pandoc\ --standalone' .
4646
\ '\ --metadata\ title=%:t:r:S' .
4747
\ '\ --metadata\ lang=' . matchstr(&spelllang, '^\a\a') .
4848
\ '\ --from=' . s:PandocFiletype(&filetype) .
49+
\ '\ ' . escape(get(b:, 'pandoc_compiler_args', get(g:, 'pandoc_compiler_args', '')), ' ') .
4950
\ '\ --output\ %:r:S.$*\ %:S'
5051

5152
CompilerSet errorformat="%f",\ line\ %l:\ %m

runtime/doc/quickfix.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickfix.txt* For Vim version 9.1. Last change: 2023 Jan 18
1+
*quickfix.txt* For Vim version 9.1. Last change: 2023 Apr 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1321,6 +1321,15 @@ If Vim was started from the compiler, the :sh and some :! commands will not
13211321
work, because Vim is then running in the same process as the compiler and
13221322
stdin (standard input) will not be interactive.
13231323

1324+
PANDOC *quickfix-pandoc* *compiler-pandoc*
1325+
1326+
The Pandoc compiler plugin expects that an output file type extension is
1327+
passed to make, say :make html or :make pdf.
1328+
1329+
Additional arguments can be passed to pandoc:
1330+
1331+
- either by appending them to make, say `:make html --self-contained` .
1332+
- or setting them in `b:pandoc_compiler_args` or `g:pandoc_compiler_args`
13241333

13251334
PERL *quickfix-perl* *compiler-perl*
13261335

runtime/doc/tags

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6528,6 +6528,7 @@ compiler-gcc quickfix.txt /*compiler-gcc*
65286528
compiler-gnat ft_ada.txt /*compiler-gnat*
65296529
compiler-hpada ft_ada.txt /*compiler-hpada*
65306530
compiler-manx quickfix.txt /*compiler-manx*
6531+
compiler-pandoc quickfix.txt /*compiler-pandoc*
65316532
compiler-perl quickfix.txt /*compiler-perl*
65326533
compiler-pyunit quickfix.txt /*compiler-pyunit*
65336534
compiler-select quickfix.txt /*compiler-select*
@@ -9561,6 +9562,7 @@ quickfix-functions usr_41.txt /*quickfix-functions*
95619562
quickfix-gcc quickfix.txt /*quickfix-gcc*
95629563
quickfix-index quickfix.txt /*quickfix-index*
95639564
quickfix-manx quickfix.txt /*quickfix-manx*
9565+
quickfix-pandoc quickfix.txt /*quickfix-pandoc*
95649566
quickfix-parse quickfix.txt /*quickfix-parse*
95659567
quickfix-perl quickfix.txt /*quickfix-perl*
95669568
quickfix-size quickfix.txt /*quickfix-size*

0 commit comments

Comments
 (0)