fix: disable external image lightbox (#525)

This commit is contained in:
Jimmy Cai 2022-03-04 10:31:57 +01:00 committed by GitHub
parent 985af924e7
commit 6f60f4f552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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