We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f523251 commit b2328bbCopy full SHA for b2328bb
src/paste-markdown-html.ts
@@ -21,9 +21,9 @@ function onPaste(event: ClipboardEvent) {
21
let text = transfer.getData('text/plain')
22
const textHTML = transfer.getData('text/html')
23
if (!textHTML) return
24
- if (!text) return
25
26
text = text.trim()
+ if (!text) return
27
28
// Generate DOM tree from HTML string
29
const parser = new DOMParser()
0 commit comments