Pandoc incorrectly resolves file path referenced by package
Closed this issue · 1 comments
ntjess commented
#import "@preview/tada:0.1.0"
Converting this fails with
pandoc: typst.toml: withBinaryFile: does not exist (No such file or directory)
This is because tada
reads the version number from typst.toml
that exists in its folder (https://github.com/typst/packages/blob/main/packages/preview/tada/0.1.0/lib.typ#L23). However, it appears pandoc is trying to read from the working directory, since placing a typst.toml
file there resolves the warning. The solution is to ensure filepaths referenced by a package have their root resolve to the package directory.
jgm commented
I think it's fixed but more testing would be helpful.