Skip to content

Commit

Permalink
Merge pull request #31852 from Expensify/revert-31619-fix-code-paste-bug
Browse files Browse the repository at this point in the history
[CP Stag] Revert "Fix 29806: code paste bug on private note"
  • Loading branch information
luacmartins authored Nov 24, 2023
2 parents e355608 + 32338b2 commit 3363c35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/report/ContextMenu/ContextMenuActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ export default [
Clipboard.setString(logMessage);
} else if (content) {
const parser = new ExpensiMark();
const markdown = parser.htmlToMarkdown(content);
if (!Clipboard.canSetHtml()) {
Clipboard.setString(markdown);
Clipboard.setString(parser.htmlToMarkdown(content));
} else {
Clipboard.setHtml(content, markdown);
const plainText = parser.htmlToText(content);
Clipboard.setHtml(content, plainText);
}
}
}
Expand Down

0 comments on commit 3363c35

Please sign in to comment.