We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6ca65b3 + 36bca07 commit f442bb9Copy full SHA for f442bb9
1 file changed
quote-selection.js
@@ -58,10 +58,13 @@ function onCopy(event: ClipboardEvent) {
58
} catch (err) {
59
return
60
}
61
- const quoted = extractQuote(selection.toString(), range, true)
+
62
+ const text = selection.toString()
63
+ const quoted = extractQuote(text, range, true)
64
if (!quoted) return
65
- transfer.setData('text/plain', quoted.selectionText)
66
+ transfer.setData('text/plain', text)
67
+ transfer.setData('text/x-gfm', quoted.selectionText)
68
event.preventDefault()
69
70
selection.removeAllRanges()
0 commit comments