Skip to content

Commit 9faa75a

Browse files
authored
fix: update project path resolution to use pandoc.path.join (#6)
1 parent 6e6335f commit 9faa75a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

_extensions/code-window/_modules/utils.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,8 @@ function M.resolve_project_path(path)
594594

595595
if path:sub(1, 1) == '/' then
596596
if quarto.project.directory then
597-
-- Prepend project directory to absolute path
598-
return quarto.project.directory .. path
597+
return pandoc.path.join({ quarto.project.directory, path:sub(2) })
599598
else
600-
-- Remove leading `/` if no project directory
601599
return path:sub(2)
602600
end
603601
else

0 commit comments

Comments
 (0)