diff --git a/src/resources/filters/normalize/draft.lua b/src/resources/filters/normalize/draft.lua
index 7b9c718a18..d3f043e643 100644
--- a/src/resources/filters/normalize/draft.lua
+++ b/src/resources/filters/normalize/draft.lua
@@ -23,17 +23,17 @@ function normalize_draft()
end
is_draft = meta[kDraft] == true or tcontains(drafts, quarto.doc.input_file);
end,
- Pandoc = function(pandoc)
+ Pandoc = function(doc)
if _quarto.format.isHtmlOutput() and not _quarto.format.isHtmlSlideOutput() then
if is_draft and draft_mode == kDraftModeGone then
- pandoc.blocks = {}
+ doc.blocks = pandoc.Blocks{}
quarto.doc.includeText("in-header", '')
- return pandoc
+ return doc
elseif is_draft and draft_mode ~= kDraftModeGone then
quarto.doc.includeText("in-header", '')
- return pandoc
+ return doc
end
end
end
}
-end
\ No newline at end of file
+end