From ce924a4010b4535b383222634418868e76893101 Mon Sep 17 00:00:00 2001 From: ifraimka1 Date: Mon, 24 Mar 2025 18:33:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81:=20=D1=83=D0=B1=D0=B8?= =?UTF-8?q?=D0=B2=D0=B0=D0=BB=D0=B8=D1=81=D1=8C=20=D0=B4=D1=80=D1=83=D0=B3?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=84=D0=B8=D0=B3=D1=83=D1=80=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api.js b/src/api.js index 7d3d048..f907441 100755 --- a/src/api.js +++ b/src/api.js @@ -28,7 +28,9 @@ function parseContent(str) { if (typeof current === 'string') continue; - if (current.type === "figure") { + const currentElClasses = current.props.className; + + if (current.type === "figure" && currentElClasses.includes('wp-block-image')) { temp.push(current.props.children.props.src); // Добавляем элемент в temp } else { if (temp.length !== 0) {