Skip to content

Commit d8cbd96

Browse files
committed
Ensure Blocks when normalizing draft posts
1 parent 6fe2889 commit d8cbd96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/resources/filters/normalize/draft.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ function normalize_draft()
2323
end
2424
is_draft = meta[kDraft] == true or tcontains(drafts, quarto.doc.input_file);
2525
end,
26-
Pandoc = function(pandoc)
26+
Pandoc = function(doc)
2727
if _quarto.format.isHtmlOutput() and not _quarto.format.isHtmlSlideOutput() then
2828
if is_draft and draft_mode == kDraftModeGone then
29-
pandoc.blocks = {}
29+
doc.blocks = pandoc.Blocks{}
3030
quarto.doc.includeText("in-header", '<meta name="quarto:status" content="' .. kDraftStatusRemove .. '">')
31-
return pandoc
31+
return doc
3232
elseif is_draft and draft_mode ~= kDraftModeGone then
3333
quarto.doc.includeText("in-header", '<meta name="quarto:status" content="' .. kDraftStatusDraft .. '">')
34-
return pandoc
34+
return doc
3535
end
3636
end
3737
end
3838
}
39-
end
39+
end

0 commit comments

Comments
 (0)