Skip to content

Commit

Permalink
feat: add --[no-]shell-escape flag [wip]
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dmke committed Nov 8, 2024
1 parent c493ba2 commit 3c8d02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tex/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func TestEngine_LatexmkCmd(t *testing.T) {
t.Cleanup(func() { SetShellEscaping(RestrictedShellEscape) })
t.Parallel()

const mainInput = "test.tex"

Expand Down

0 comments on commit 3c8d02f

Please sign in to comment.