From 35b6e4c374a9b2791c3ed8ed77d7f6930993279f Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 24 Mar 2024 09:25:05 +0800 Subject: [PATCH] :bug: Fix paste as escaped text for list https://ld246.com/article/1711182399696 --- app/src/protyle/util/paste.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 2fa2311a6..e12ea5bee 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -19,7 +19,7 @@ import {cellScrollIntoView} from "../render/av/cell"; export const pasteEscaped = async (protyle: IProtyle, nodeElement: Element) => { try { - // * _ [ ] ! \ ` < > & ~ { } ( ) = # $ ^ | + // * _ [ ] ! \ ` < > & ~ { } ( ) = # $ ^ | . let clipText = await readText(); // https://github.com/siyuan-note/siyuan/issues/5446 // A\B\C\D\ @@ -47,7 +47,8 @@ export const pasteEscaped = async (protyle: IProtyle, nodeElement: Element) => { .replace(/#/g, "\\#") .replace(/\$/g, "\\$") .replace(/\^/g, "\\^") - .replace(/\|/g, "\\|"); + .replace(/\|/g, "\\|") + .replace(/\./g, "\\."); pasteText(protyle, clipText, nodeElement); } catch (e) { console.log(e);