From 6f60f4f552ecc70e613089f47a8a5e5e1d932941 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 4 Mar 2022 10:31:57 +0100 Subject: [PATCH] fix: disable external image lightbox (#525) --- assets/ts/gallery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/ts/gallery.ts b/assets/ts/gallery.ts index 218658d..9840f1e 100644 --- a/assets/ts/gallery.ts +++ b/assets/ts/gallery.ts @@ -61,7 +61,7 @@ class StackGallery { /// because it can not detect whether image is being wrapped by a link or not /// and it lead to a invalid HTML construction (
) - const images = container.querySelectorAll('img'); + const images = container.querySelectorAll('img.gallery-image'); for (const img of Array.from(images)) { /// Images are wrapped with figure tag if the paragraph has only images without texts /// This is done to allow inline images within paragraphs