mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 15:26:09 +01:00
🐛 Fix paste as escaped text for list https://ld246.com/article/1711182399696
This commit is contained in:
parent
5a9ce91d03
commit
35b6e4c374
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue