Skip to content

Commit

Permalink
Merge pull request #11896 from mcanouil/fix/issue11893
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv authored Feb 6, 2025
2 parents 3ff49d5 + dcb00f5 commit c03d89a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/changelog-1.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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 {}
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
19 changes: 19 additions & 0 deletions tests/docs/smoke-all/2025/02/01/11896.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
format: pptx
_quarto:
tests:
pptx:
ensurePptxMaxSlides:
- 1
ensurePptxRegexMatches:
- ['<a:t>Before<\/a:t><\/a:r><\/a:p><a:p><a:pPr lvl="0" indent="0" marL="0"><a:buNone \/><\/a:pPr><a:r><a:rPr \/><a:t>After<\/a:t>']
- 1
---

## Slide

Before

{{< pagebreak >}}

After

0 comments on commit c03d89a

Please sign in to comment.