File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/resources/filters/quarto-post Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11-- cites.lua
22-- Copyright (C) 2020-2022 Posit Software, PBC
33
4- local cites = pandoc .List ()
4+ local discoveredCites = pandoc .List ()
55local kRefsIndentifier = " refs-target-identifier"
66
77function indexCites ()
@@ -14,9 +14,9 @@ function indexCites()
1414 end
1515 end ,
1616 Cite = function (el )
17- el .citations : map ( function ( cite )
18- cites :insert (cite .id )
19- end )
17+ for i , v in ipairs ( el .citations ) do
18+ discoveredCites :insert (v .id )
19+ end
2020 end
2121 }
2222end
@@ -37,7 +37,7 @@ function writeCites()
3737 -- write the cites
3838 local inputFile = quarto .doc .input_file
3939 local relativeFilePath = pandoc .path .make_relative (inputFile , quarto .project .directory )
40- documentCites [relativeFilePath ] = cites
40+ documentCites [relativeFilePath ] = discoveredCites
4141
4242 -- write the file
4343 local json = quarto .json .encode (documentCites )
You can’t perform that action at this time.
0 commit comments