From f2a48f3eed21361f1ab2ba3b5796915c23345e73 Mon Sep 17 00:00:00 2001 From: Jacob Levernier Date: Wed, 8 Mar 2023 21:59:47 -0500 Subject: [PATCH] Added replacement of linebreaks in image alt text with space. --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 4633eac..edd8af7 100644 --- a/main.ts +++ b/main.ts @@ -409,7 +409,7 @@ export default class PastetoIndentationPlugin extends Plugin { } } - clipboardContents = htmlToMarkdown(htmlDom.documentElement.innerHTML); + clipboardContents = htmlToMarkdown(htmlDom.documentElement.innerHTML).replaceAll('\n', ' '); // htmlToMarkdown() will return a blank string if // there is no HTML to convert. If that is the case,