Skip to content

Commit

Permalink
Add check for HTML format.
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Feb 11, 2024
1 parent f3f4653 commit 2c0db6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _extensions/embedio/pdf.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
local function pdf(args, kwargs, meta)

if not quarto.doc.is_format("html") then
return
end

-- Supported options for now
local pdf_file_name = pandoc.utils.stringify(kwargs["file"])
local height = pandoc.utils.stringify(kwargs["height"]) or "600px"
Expand Down
5 changes: 5 additions & 0 deletions _extensions/embedio/revealjs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ local function ensureSlideCSSPresent()
end

local function revealjs(args, kwargs, meta , raw_args)

if not quarto.doc.is_format("html") then
return
end

-- Enable CSS
ensureSlideCSSPresent()

Expand Down

0 comments on commit 2c0db6e

Please sign in to comment.