Vanessa 2026-01-06 12:52:35 +08:00
parent a3fc8f7483
commit 0a77eac333
9 changed files with 28 additions and 40 deletions

View file

@ -0,0 +1,10 @@
// https://github.com/siyuan-note/siyuan/issues/9382
export const nbsp2space = (text: string) => {
// 非打断空格转换为空格
return text.replace(/\u00A0/g, " ");
};
// https://github.com/siyuan-note/siyuan/issues/14800
export const removeZWJ = (text: string) => {
return text.replace(/\u200D```/g, "```");
};