Merge remote-tracking branch 'upstream/master' into enable-left-sidebar

This commit is contained in:
zhixuan 2022-02-13 21:25:10 +09:00
commit df9bbd1aea
No known key found for this signature in database
GPG Key ID: 05D14AD50C51A06F

View File

@ -67,6 +67,8 @@ class StackGallery {
/// This is done to allow inline images within paragraphs
const paragraph = img.closest('p');
if (!paragraph || !container.contains(paragraph)) continue;
if (paragraph.textContent.trim() == '') {
/// Once we insert figcaption, this check no longer works
/// So we add a class to paragraph to mark it