Skip to content

Commit

Permalink
fix: pagebreak breaks PowerPoint
Browse files Browse the repository at this point in the history
Fixes #11893
  • Loading branch information
mcanouil committed Jan 18, 2025
1 parent 365780f commit f13afd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resources/filters/quarto-pre/shortcodes-handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ function handlePagebreak()

if FORMAT == 'docx' then
return pandoc.RawBlock('openxml', pagebreak.ooxml)
elseif FORMAT == 'pptx' then
return pandoc.Para{pandoc.Str ''}
elseif FORMAT:match 'latex' then
return pandoc.RawBlock('tex', pagebreak.latex)
elseif FORMAT:match 'odt' then
Expand All @@ -326,4 +328,4 @@ function handlePagebreak()
return pandoc.Para{pandoc.Str '\f'}
end

end
end

0 comments on commit f13afd3

Please sign in to comment.