From c3f92c801e48c7647affacae11b54ed52aba3926 Mon Sep 17 00:00:00 2001 From: fkakatie Date: Thu, 30 Jul 2026 11:08:08 -0600 Subject: [PATCH] fix: treat blockquote as a valid wrapper in wrapTextNodes --- src/dom-utils.js | 1 + test/dom-utils/wrapTextNodes.test.html | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/dom-utils.js b/src/dom-utils.js index b61068f..81278c2 100644 --- a/src/dom-utils.js +++ b/src/dom-utils.js @@ -136,6 +136,7 @@ export function wrapTextNodes(block) { 'UL', 'OL', 'PICTURE', 'TABLE', + 'BLOCKQUOTE', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', ]; diff --git a/test/dom-utils/wrapTextNodes.test.html b/test/dom-utils/wrapTextNodes.test.html index b51b64f..252b429 100644 --- a/test/dom-utils/wrapTextNodes.test.html +++ b/test/dom-utils/wrapTextNodes.test.html @@ -110,6 +110,16 @@

headings of all levels will not be wrapped

+
+
+
a blockquote will not be wrapped
+
+
+
+
+
a blockquote will not be wrapped
+
+