mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🎨 Improve Markdown code block parsing https://github.com/siyuan-note/siyuan/issues/13552
This commit is contained in:
parent
b3074fceea
commit
dbb5bcccb1
1 changed files with 4 additions and 0 deletions
|
|
@ -438,6 +438,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
||||||
// 复制 HTML 块粘贴出来的不是 HTML 块 https://github.com/siyuan-note/siyuan/issues/12994
|
// 复制 HTML 块粘贴出来的不是 HTML 块 https://github.com/siyuan-note/siyuan/issues/12994
|
||||||
tempInnerHTML = Lute.UnEscapeHTMLStr(tempInnerHTML);
|
tempInnerHTML = Lute.UnEscapeHTMLStr(tempInnerHTML);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/siyuan-note/siyuan/issues/13552
|
||||||
|
tempInnerHTML = tempInnerHTML.replace(/\u200D```/g, "```");
|
||||||
|
|
||||||
insertHTML(tempInnerHTML, protyle, isBlock, false, true);
|
insertHTML(tempInnerHTML, protyle, isBlock, false, true);
|
||||||
}
|
}
|
||||||
filterClipboardHint(protyle, protyle.lute.BlockDOM2StdMd(tempInnerHTML));
|
filterClipboardHint(protyle, protyle.lute.BlockDOM2StdMd(tempInnerHTML));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue