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 ed57d10 commit 3ea3313Copy full SHA for 3ea3313
src/resources/filters/crossref/refs.lua
@@ -16,7 +16,7 @@ function resolveRefs()
16
-- get the label and type, and note if the label is uppercase
17
local label = cite.id
18
local type = refType(label)
19
- if type ~= nil then
+ if type ~= nil and isValidRefType(type) then
20
local upper = not not string.match(cite.id, "^[A-Z]")
21
22
-- lookup the label
@@ -143,6 +143,9 @@ function refLabelPattern(type)
143
return "{#(" .. type .. "%-[^ }]+)}"
144
end
145
146
+function isValidRefType(type)
147
+ return tcontains(validRefTypes(), type)
148
+end
149
150
function validRefTypes()
151
local types = tkeys(theoremTypes)
0 commit comments