Skip to content

Commit

Permalink
Added replacement of linebreaks in image alt text with space.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglev committed Mar 9, 2023
1 parent 283d940 commit f2a48f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f2a48f3

Please sign in to comment.