diff --git a/news/changelog-1.7.md b/news/changelog-1.7.md index 36b3fa2a61f..d3240d0d7fc 100644 --- a/news/changelog-1.7.md +++ b/news/changelog-1.7.md @@ -57,6 +57,7 @@ All changes included in 1.7: - ([#11699](https://github.com/quarto-dev/quarto-cli/issues/11699)): Fix crash with `video` shortcode inside HTML comments. - Expose new `quarto.paths.tinytex_bin_dir` in Quarto's Lua API. If TinyTeX is found by Quarto, this will be set to the path to the `bin` directory of the TinyTeX installation where command line tool are located (e.g., `pdflatex`, `tlmgr`, etc.). If TinyTeX is not found, this will be `nil`, meaning Quarto will use the system PATH to find the command line tools. - Fix `pandoc.mediabag` Lua typings so autocompletions work with the Lua LSP integration. +- ([#11896](https://github.com/quarto-dev/quarto-cli/pull/11896)): fix `\f` (`{{< pagebreak >}}`) form feed character not valid in PowerPoint (`pptx`). - ([#11664](https://github.com/quarto-dev/quarto-cli/issues/11664)): `lipsum` shortcode is no longer randomly generated by default, use `{{< lipsum random=true >}}` to restore randomness. ## Engines diff --git a/src/resources/filters/quarto-pre/shortcodes-handlers.lua b/src/resources/filters/quarto-pre/shortcodes-handlers.lua index a6189d097ee..f5e6508ee50 100644 --- a/src/resources/filters/quarto-pre/shortcodes-handlers.lua +++ b/src/resources/filters/quarto-pre/shortcodes-handlers.lua @@ -309,6 +309,8 @@ function handlePagebreak() if FORMAT == 'docx' then return pandoc.RawBlock('openxml', pagebreak.ooxml) + elseif FORMAT == 'pptx' then + return {} elseif FORMAT:match 'latex' then return pandoc.RawBlock('tex', pagebreak.latex) elseif FORMAT:match 'odt' then @@ -326,4 +328,4 @@ function handlePagebreak() return pandoc.Para{pandoc.Str '\f'} end -end \ No newline at end of file +end diff --git a/tests/docs/smoke-all/2025/02/01/11896.qmd b/tests/docs/smoke-all/2025/02/01/11896.qmd new file mode 100644 index 00000000000..abc513bf573 --- /dev/null +++ b/tests/docs/smoke-all/2025/02/01/11896.qmd @@ -0,0 +1,19 @@ +--- +format: pptx +_quarto: + tests: + pptx: + ensurePptxMaxSlides: + - 1 + ensurePptxRegexMatches: + - ['Before<\/a:t><\/a:r><\/a:p><\/a:pPr>After<\/a:t>'] + - 1 +--- + +## Slide + +Before + +{{< pagebreak >}} + +After