branch: elpa/typst-ts-mode
commit aa08677d8cf294a79e10f96bb85bfcedb8aeefff
Author: Alex Figl-Brick <[email protected]>
Commit: Alex Figl-Brick <[email protected]>
When compiling file, shell-escape input and output file names in the
`compile` command
---
typst-ts-compile.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/typst-ts-compile.el b/typst-ts-compile.el
index 7b88c75cf75..43ba894b4f2 100644
--- a/typst-ts-compile.el
+++ b/typst-ts-compile.el
@@ -55,8 +55,8 @@ When using a prefix argument or the optional argument PREVIEW,
(compile
(format "%s compile %s %s %s"
typst-ts-compile-executable-location
- (file-name-nondirectory buffer-file-name)
- (typst-ts-compile-get-result-pdf-filename)
+ (shell-quote-argument (file-name-nondirectory buffer-file-name))
+ (shell-quote-argument (typst-ts-compile-get-result-pdf-filename))
typst-ts-compile-options)
'typst-ts-compilation-mode))