Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix: wrong paths generated for @local/@preview packages #30

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

theofabilous
Copy link
Contributor

Prior to these changes, typst packages could not be imported.

  • Changed the formatted path in SystemWorld::prepare_package to represent the current structure of packages (namespace/name/version), which allows typst to find and detect the existence of packages (before this, importing packages resulted in a "package not found" error)
  • Use path.normalize() in place of obsidian.normalizePath() in preparePackage(), because the latter always interprets paths as being relative to the vault, but namespaced packages (i.e. @local/@preview) always refer to paths outside of the vault

@fenjalien fenjalien merged commit faee30b into fenjalien:master Oct 17, 2023
@fenjalien fenjalien mentioned this pull request Oct 17, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants