-
I have some pictures that I want to hide by default, to avoid spoiler or something horrific, and should warn viewers first.
So the question is, can we somehow make lightgalery and picture in Admonition work together? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Cannot reproduce, the lightgallary should work just fine with admonition. I think your problem here is that the link to your image is not correct. Maybe double check the file path for your images... |
Beta Was this translation helpful? Give feedback.
-
Thank you, I check file path but it's correct and images are showing just fine. I figured it out, I went back and check the document at https://hugodoit.pages.dev/basic-markdown-syntax/, and realized that: As for now, the issue went away if I add a caption to images.
So lightgalery and picture in Admonition works okay though. |
Beta Was this translation helpful? Give feedback.
Thank you, I check file path but it's correct and images are showing just fine.
I figured it out, I went back and check the document at https://hugodoit.pages.dev/basic-markdown-syntax/, and realized that:
![Alt text](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
=> recognized by LightGallery by adding a caption.![Minion](https://octodex.github.com/images/minion.png)
=> it won't be parsed by LightGallery without caption I think.As for now, the issue went away if I add a caption to images.
So lightgalery and picture in …