Commit b586e72
claude: fix relative font-paths in typst extensions (#13745)
Only resolve font paths that come from extensions (paths containing
_extensions or starting with ..) relative to the input directory.
Other relative paths like .quarto/typst-font-cache should remain
relative to the working directory where typst runs.
This fixes the issue where font-paths specified in extension
configurations weren't being found when the input document was in
a subdirectory, while preserving correct behavior for brand font
cache paths.
Adds a test case that verifies extension font-paths work correctly
when the document is in a subdirectory.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent b337042 commit b586e72
2 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| |||
0 commit comments