File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -232,12 +232,14 @@ return {
232
232
Meta = function (meta )
233
233
local json
234
234
local prefix
235
- for k , v in pairs (meta .interlinks .sources ) do
236
- local base_name = quarto .project .offset .. " /_inv/" .. k .. " _objects"
237
- json = read_inv_text_or_json (base_name )
238
- prefix = pandoc .utils .stringify (v .url )
239
- if json ~= nil then
240
- fixup_json (json , prefix )
235
+ if meta .interlinks and meta .interlinks .sources then
236
+ for k , v in pairs (meta .interlinks .sources ) do
237
+ local base_name = quarto .project .offset .. " /_inv/" .. k .. " _objects"
238
+ json = read_inv_text_or_json (base_name )
239
+ prefix = pandoc .utils .stringify (v .url )
240
+ if json ~= nil then
241
+ fixup_json (json , prefix )
242
+ end
241
243
end
242
244
end
243
245
json = read_inv_text_or_json (quarto .project .offset .. " /objects" )
You can’t perform that action at this time.
0 commit comments