diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-05-15 08:28:18 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-05-15 08:28:40 -0300 |
| commit | 74d753afef12b7253915be72a7afee8faa67ffdb (patch) | |
| tree | 88a938513347fe604f06db2901b19c7eb896405e | |
| parent | b68e658e27ae3c6e799342e69dfe3ee45cd53d7b (diff) | |
replacer, css: support wiki-style <audio> (etc) inside blockquote preview
| -rw-r--r-- | src/replacer.js | 2 | ||||
| -rw-r--r-- | src/static/css/features.css | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/replacer.js b/src/replacer.js index 4e29f927..e5e7cfa9 100644 --- a/src/replacer.js +++ b/src/replacer.js @@ -623,6 +623,8 @@ function postprocessHTMLTags(inputNodes, tagName, callback) { if (previousText.endsWith('\n')) { atStartOfLine = true; + } else if (previousText.match(/^(> )+/m)) { + atStartOfLine = true; } else if (previousText.length) { atStartOfLine = false; } diff --git a/src/static/css/features.css b/src/static/css/features.css index 126ca875..89d58d8e 100644 --- a/src/static/css/features.css +++ b/src/static/css/features.css @@ -1472,9 +1472,9 @@ width: 100%; } - .content-image-container:last-child, - .content-video-container:last-child, - .content-audio-container:last-child { + .content-image-container:last-child:not(blockquote > *) + .content-video-container:last-child:not(blockquote > *), + .content-audio-container:last-child:not(blockquote > *) { margin-bottom: 1.15em; } |