File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
_extensions/quarto-ext/lightbox Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11/.luarc.json
2+ /example.html
3+ /example_files /
Original file line number Diff line number Diff line change 11title : Lightbox
22author : RStudio, PBC
33version : 0.1.4
4+ quarto-required : " >=1.2.198"
45contributes :
56 filters :
67 - lightbox.lua
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ return {
9898 },
9999 {
100100 Image = function (imgEl )
101- if quarto .doc .isFormat (" html:js" ) then
101+ if quarto .doc .is_format (" html:js" ) then
102102 local isAlreadyLinked = imagesWithinLinks :includes (imgEl )
103103 if (not isAlreadyLinked and auto and not imgEl .classes :includes (kNoLightboxClass ))
104104 or imgEl .classes :includes (' lightbox' ) then
@@ -161,7 +161,7 @@ return {
161161 -- we need to include the dependencies
162162 if needsLightbox then
163163 -- add the dependency
164- quarto .doc .addHtmlDependency ({
164+ quarto .doc .add_html_dependency ({
165165 name = ' glightbox' ,
166166 scripts = {' resources/js/glightbox.min.js' },
167167 stylesheets = {' resources/css/glightbox.min.css' , ' lightbox.css' }
@@ -230,7 +230,7 @@ return {
230230 local scriptTag = " <script>var lightboxQuarto = GLightbox(" .. optionsJson .. " );</script>"
231231
232232 -- inject the rendering code
233- quarto .doc .includeText (" after-body" , scriptTag )
233+ quarto .doc .include_text (" after-body" , scriptTag )
234234
235235 end
236236 end
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ title: Example Lightbox Document
33filters :
44 - lightbox
55lightbox : auto
6- keep-md : true
76---
87
98## Chilmark
You can’t perform that action at this time.
0 commit comments