« get me outta code hell

replacer: actually set atStartOfLine = false past start of line - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-10 12:53:17 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-10 12:53:17 -0300
commita26a913841bba73f44182bb5e1725f91573395a9 (patch)
treec09d9d89c9e0461f8d3f978583dece6b322ab704 /src/util
parentf53cb64d4380cc37d9a0908b52693fb6c9cf499f (diff)
replacer: actually set atStartOfLine = false past start of line
Diffstat (limited to 'src/util')
-rw-r--r--src/util/replacer.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js
index 9779f84e..0a3117ed 100644
--- a/src/util/replacer.js
+++ b/src/util/replacer.js
@@ -470,6 +470,8 @@ export function postprocessImages(inputNodes) {
 
         if (previousText.endsWith('\n')) {
           atStartOfLine = true;
+        } else if (previousText.length) {
+          atStartOfLine = false;
         }
 
         imageNode.inline = (() => {