Skip to content

Commit 94cc9bc

Browse files
authored
Merge pull request #268 from cpcloud/main
fix(interlinks): ensure that json fixup only happens when json is not nil
2 parents 1de0c38 + 48cf77a commit 94cc9bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_extensions/interlinks/interlinks.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ return {
236236
local base_name = quarto.project.offset .. "/_inv/" .. k .. "_objects"
237237
json = read_inv_text_or_json(base_name)
238238
prefix = pandoc.utils.stringify(v.url)
239-
fixup_json(json, prefix)
239+
if json ~= nil then
240+
fixup_json(json, prefix)
241+
end
240242
end
241243
json = read_inv_text_or_json(quarto.project.offset .. "/objects")
242244
if json ~= nil then

0 commit comments

Comments
 (0)