Skip to content

Commit f13afd3

Browse files
committed
fix: pagebreak breaks PowerPoint
Fixes #11893
1 parent 365780f commit f13afd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/resources/filters/quarto-pre/shortcodes-handlers.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ function handlePagebreak()
309309

310310
if FORMAT == 'docx' then
311311
return pandoc.RawBlock('openxml', pagebreak.ooxml)
312+
elseif FORMAT == 'pptx' then
313+
return pandoc.Para{pandoc.Str ''}
312314
elseif FORMAT:match 'latex' then
313315
return pandoc.RawBlock('tex', pagebreak.latex)
314316
elseif FORMAT:match 'odt' then
@@ -326,4 +328,4 @@ function handlePagebreak()
326328
return pandoc.Para{pandoc.Str '\f'}
327329
end
328330

329-
end
331+
end

0 commit comments

Comments
 (0)