We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70bc48 commit dc961b6Copy full SHA for dc961b6
src/resources/filters/quarto-pre/resourcefiles.lua
@@ -9,6 +9,14 @@ function resourceFiles()
9
-- files for preview if they are newer than the source files. we may need to
10
-- record discovered resource files in some sort of index in order to work
11
-- around this
12
+ Image = function(el)
13
+ local targetPath = el.src
14
+ if pandoc.path.is_relative(targetPath) then
15
+ local inputDir = pandoc.path.directory(quarto.doc.input_file)
16
+ targetPath = pandoc.path.join({inputDir, el.src})
17
+ end
18
+ recordFileResource(el.src)
19
+ end,
20
}
21
end
22
0 commit comments