From 3c8d02f4d3a0b69e68ca79b39a576e6eed9dfbdf Mon Sep 17 00:00:00 2001 From: Dominik Menke Date: Tue, 5 Nov 2024 22:29:26 +0100 Subject: [PATCH] feat: add --[no-]shell-escape flag [wip] This allows or prohibits shell command execution from within TeX files. TODO: Verify whether `latexmk -showextraoptions` mentions direct support for passing either flag. latexmk(1) does not, but has examples passing it via the `-pdf{lua,xe,}latex="COMMAND"` options. This would complicate the construction of the latexmk command. Fixes: #152 --- tex/engine_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tex/engine_test.go b/tex/engine_test.go index 035ac2c..95ef5df 100644 --- a/tex/engine_test.go +++ b/tex/engine_test.go @@ -8,7 +8,7 @@ import ( ) func TestEngine_LatexmkCmd(t *testing.T) { - t.Cleanup(func() { SetShellEscaping(RestrictedShellEscape) }) + t.Parallel() const mainInput = "test.tex"