We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4691866 commit 8aecde1Copy full SHA for 8aecde1
1 file changed
src/resources/filters/crossref/equations.lua
@@ -239,6 +239,9 @@ function parseRefAttr(text)
239
end)
240
text = text:gsub(placeholder, "'")
241
242
+ -- Normalise spaces around = in attributes (alt = "value" -> alt="value")
243
+ text = text:gsub("(%w+)%s*=%s*(['\"])", "%1=%2")
244
+
245
local parsed = pandoc.read("## " .. text, "markdown")
246
if parsed and parsed.blocks[1] and parsed.blocks[1].attr then
247
local attr = parsed.blocks[1].attr
0 commit comments