diff options
Diffstat (limited to 'crates/typst-kit/src')
| -rw-r--r-- | crates/typst-kit/src/package.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/typst-kit/src/package.rs b/crates/typst-kit/src/package.rs index ad69df01..3c9e6529 100644 --- a/crates/typst-kit/src/package.rs +++ b/crates/typst-kit/src/package.rs @@ -85,9 +85,11 @@ impl PackageStorage { } // Download from network if it doesn't exist yet. - self.download_package(spec, &dir, progress)?; - if dir.exists() { - return Ok(dir); + if spec.namespace == "preview" { + self.download_package(spec, &dir, progress)?; + if dir.exists() { + return Ok(dir); + } } } |
