diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index aee087ee5..82dd881f6 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -1,7 +1,7 @@ import {Constants} from "../../constants"; import {uploadFiles, uploadLocalFiles} from "../upload"; import {processPasteCode, processRender} from "./processCode"; -import {readText, writeText} from "./compatibility"; +import {readText} from "./compatibility"; /// #if !BROWSER import {clipboard} from "electron"; /// #endif @@ -95,7 +95,6 @@ export const getPlainText = (blockElement: HTMLElement, isNested = false) => { export const pasteEscaped = async (protyle: IProtyle, nodeElement: Element) => { try { - // * _ [ ] ! \ ` < > & ~ { } ( ) = # $ ^ | . let clipText = await readText(); // 删掉 text 标签,只保留文本 clipText = clipText.replace(/(.*?)<\/span>/g, "$1");