From a26a913841bba73f44182bb5e1725f91573395a9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 10 Mar 2024 12:53:17 -0300 Subject: replacer: actually set atStartOfLine = false past start of line --- src/util/replacer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/replacer.js b/src/util/replacer.js index 9779f84..0a3117e 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 = (() => { -- cgit 1.3.0-6-gf8a5