Skip to content

Commit

Permalink
initialize global crossref state in standalone version
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed May 25, 2023
1 parent 7db34fd commit 4b7c0fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/resources/filters/crossref/crossref.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
-- required version
PANDOC_VERSION:must_be_at_least '2.13'

-- global crossref state
crossref = {
usingTheorems = false,
startAppendix = nil,
-- initialize autolabels table
autolabels = pandoc.List()
}

-- [import]
function import(script)
local path = PANDOC_SCRIPT_FILE:match("(.*[/\\])")
Expand Down

0 comments on commit 4b7c0fe

Please sign in to comment.