Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# rpt (development version)

* Extended `slidebreak` shortcode to support all slide deck formats (RevealJS, PowerPoint, Beamer) using the Quarto `slides` format alias (#103)

* Switched from pkgdown to altdoc for documentation generation. Now using Quarto Website for documentation with native math equation support via MathJax.
* Removed pkgdown-specific configurations and workflows.
* Retained RevealJS multi-format support for Quarto vignettes and articles.
Expand Down
6 changes: 3 additions & 3 deletions altdoc/_extensions/slidebreak/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions altdoc/_extensions/slidebreak/slidebreak.lua
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
-- slidebreak.lua
-- A Quarto shortcode that inserts a slide break in revealjs and powerpoint formats
-- but does nothing in docx and html formats
-- A Quarto shortcode that inserts a slide break in all slide deck formats
-- (revealjs, pptx, beamer) but does nothing in docx and html formats

function slidebreak()
-- Get the current output format
-- See: https://quarto.org/docs/extensions/lua-api.html#format-detection
local format = quarto.doc.is_format
Comment thread
d-morrison marked this conversation as resolved.

-- Insert slide break for revealjs and powerpoint/pptx formats
if format("revealjs") or format("pptx") or format("powerpoint") then
-- Use HorizontalRule which creates a slide separator in RevealJS
-- Insert slide break for all slide/presentation formats (revealjs, pptx, beamer)
if format("revealjs") or format("pptx") or format("beamer") then
-- Use HorizontalRule which creates a slide separator in presentation formats
return pandoc.HorizontalRule()
end

-- Return empty for html and docx formats (and any other format)
-- Return empty for html and docx formats (and any other non-presentation format)
return pandoc.Null()
end

Expand Down