« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 = (() => {