From add763fc5caf6d2be2316ee8c8270fa56940136a Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 26 Oct 2020 16:38:57 +0100 Subject: issue #8132 Markdown inclusion of images broken after 39db9f48 see to it that the `\ilinebr` cannot be seen as part of the file name (backslashes can be present as path especially in case of windows). --- src/markdown.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/markdown.cpp b/src/markdown.cpp index 207aa14..5240cd9 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -784,6 +784,10 @@ void Markdown::writeMarkdownImage(const char *fmt, bool explicitTitle, m_out.addStr(title); m_out.addStr("\""); } + else + { + m_out.addStr(" ");// so the line break will not be part of the image name + } m_out.addStr("\\ilinebr"); } -- cgit v0.12