mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-02 13:45:49 +00:00
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.
11 lines
148 B
Markdown
11 lines
148 B
Markdown
```
|
|
% 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
|
|
```
|