]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): Do not set title in pandoc compiler
authorUbaldo Tiberi <ubaldo.tiberi@volvo.com>
Sat, 10 Jan 2026 18:21:45 +0000 (18:21 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 10 Jan 2026 18:23:16 +0000 (18:23 +0000)
closes: #19048

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@volvo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/pandoc.vim

index 40d2d026339c17d49bb9043fae93d48eb4408bec..d120419207ad68862d3667c78f0dbc29fca12dc4 100644 (file)
@@ -2,7 +2,8 @@
 " Compiler:     Pandoc
 " Maintainer:   Konfekt
 " Last Change: 2024 Nov 19
-" 2025 May 15 Update the title regex for CompilerSet #17321
+" 2025 May 15 by Vim Project: Update the title regex for CompilerSet #17321
+" 2026 Jan 10 by Vim Project: Do not set the title #19048
 "
 " Expects output file extension, say `:make html` or `:make pdf`.
 " Passes additional arguments to pandoc, say `:make html --self-contained`.
@@ -52,8 +53,6 @@ endfunction
 
 execute 'CompilerSet makeprg=pandoc'..escape(
     \ ' --standalone'..
-    \ (s:PandocFiletype(&filetype) ==# 'markdown' && (getline(1) =~# '^%\s\+\S\+' || (search('^title:\s\+\S\+', 'cnw') > 0)) ?
-    \ '' : ' --metadata title=%:t:r:S')..
     \ ' '..s:PandocLang()..
     \ ' --from='..s:PandocFiletype(&filetype)..
     \ ' '..get(b:, 'pandoc_compiler_args', get(g:, 'pandoc_compiler_args', ''))..