fix: disable external image lightbox (#525)
This commit is contained in:
parent
985af924e7
commit
6f60f4f552
@ -61,7 +61,7 @@ class StackGallery {
|
|||||||
/// because it can not detect whether image is being wrapped by a link or not
|
/// because it can not detect whether image is being wrapped by a link or not
|
||||||
/// and it lead to a invalid HTML construction (<a><figure><img></figure></a>)
|
/// and it lead to a invalid HTML construction (<a><figure><img></figure></a>)
|
||||||
|
|
||||||
const images = container.querySelectorAll('img');
|
const images = container.querySelectorAll('img.gallery-image');
|
||||||
for (const img of Array.from(images)) {
|
for (const img of Array.from(images)) {
|
||||||
/// Images are wrapped with figure tag if the paragraph has only images without texts
|
/// Images are wrapped with figure tag if the paragraph has only images without texts
|
||||||
/// This is done to allow inline images within paragraphs
|
/// This is done to allow inline images within paragraphs
|
||||||
|
Loading…
Reference in New Issue
Block a user