Skip to content

Commit 57d6f2f

Browse files
committed
Correct format checking
1 parent 65a34ac commit 57d6f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/filters/quarto-pre/content-hidden.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ end
2222
function attributesMatch(el)
2323
local match = true
2424
if el.attributes["when-format"] ~= nil then
25-
match = match and quarto.doc.formatMatches(el.attributes["when-format"])
25+
match = match and _quarto.format.isFormat(el.attributes["when-format"])
2626
end
2727
if el.attributes["unless-format"] ~= nil then
28-
match = match and not quarto.doc.formatMatches(el.attributes["unless-format"])
28+
match = match and not _quarto.format.isFormat(el.attributes["unless-format"])
2929
end
3030
return match
3131
end

0 commit comments

Comments
 (0)