diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 2d6d26ba7..b8faafaea 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -107,6 +107,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven if (doc.body && doc.body.innerHTML) { textHTML = doc.body.innerHTML; } + // windows 剪切板 + if (textHTML.startsWith("\n") && textHTML.endsWith("\n\n")) { + textHTML = doc.body.innerHTML.trim().replace("", "").replace("", ""); + } } textHTML = Lute.Sanitize(textHTML);