Skip to content

Commit

Permalink
feat: Add warning to code chunk about embed-resources (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie authored Sep 27, 2024
1 parent 7f0b6b7 commit d93c9f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _extensions/quarto-ext/shinylive/shinylive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,13 @@ return {
el.attr.classes = pandoc.List()
el.attr.classes:insert("shinylive-r")
end

el.text =
"#| '!! shinylive warning !!': |\n"..
"#| shinylive does not work in self-contained HTML documents.\n" ..
"#| Please set `embed-resources: false` in your metadata.\n" ..
el.text

return el
end
}
Expand Down

0 comments on commit d93c9f2

Please sign in to comment.