« get me outta code hell

content: transformContent: keep blank lines between blockquotes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-10-01 21:41:54 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-10-01 21:41:54 -0300
commitbfc4a8cb5deb69d3692837f8ede95089a01bef44 (patch)
tree45a645a061071d8f6d4cf8dd39070e1de3bf3644 /src
parent5bd8f23e380924bfa9e81de197cd7c7c73830bfd (diff)
content: transformContent: keep blank lines between blockquotes preview
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/transformContent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 3f738db2..a3df46cd 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -891,8 +891,8 @@ export default {
         extractNonTextNodes()
           // Compress multiple line breaks into single line breaks,
           // except when they're preceding or following indented
-          // text (by at least two spaces).
-          .replace(/(?<!  .*)\n{2,}(?!^  )/gm, '\n') /* eslint-disable-line no-regex-spaces */
+          // text (by at least two spaces) or blockquotes.
+          .replace(/(?<!^  .*|^>.*)\n{2,}(?!^  |^>)/gm, '\n') /* eslint-disable-line no-regex-spaces */
           // Expand line breaks which don't follow a list, quote,
           // or <br> / "  ", and which don't precede or follow
           // indented text (by at least two spaces).