Skip to content

Commit

Permalink
Fix #24
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelercj committed May 24, 2024
1 parent dbe0e6f commit 7f828f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions chromium/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ async function scriptWriteLinkToClipboard(tab, id) {
case 'selected':
selectedText = await replaceBrackets(selectedText, subBrackets);
selectedText = await escapeMarkdown(selectedText);
selectedText = selectedText.replaceAll('\n', ' ');
text = `[${selectedText}](${url})`;
break;
case 'blockquote':
Expand Down
1 change: 1 addition & 0 deletions firefox/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ async function createTabLinkMarkdown(tab, id, linkFormat, subBrackets, checkSele
case 'selected':
selectedText = await replaceBrackets(selectedText, subBrackets);
selectedText = await escapeMarkdown(selectedText);
selectedText = selectedText.replaceAll('\r\n', ' ');
text = `[${selectedText}](${url})`;
break;
case 'blockquote':
Expand Down

0 comments on commit 7f828f6

Please sign in to comment.