Add --typst-input CLI option.

This allows one to pass parameters to typst, which are available
at `sys.inputs`, just as `typst` itself does with its `--input`
option.

[API changes]

* ReaderOptions has a new field `readerTypstInputs`.
* Opt has a new field `optTypstInputs`.

Closes #11588.
This commit is contained in:
John MacFarlane
2026-04-18 13:03:32 +02:00
parent d9838eba11
commit aa571d2c41
9 changed files with 41 additions and 9 deletions
+10
View File
@@ -0,0 +1,10 @@
```
% pandoc --typst-input foo=FOO --typst-input bar="bar bim" -f typst -t plain
#sys.inputs.at("foo");
#sys.inputs.at("bar");
^D
FOO
bar bim
```