mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 19:30:16 +01:00
This commit is contained in:
parent
a3fc8f7483
commit
0a77eac333
9 changed files with 28 additions and 40 deletions
10
app/src/protyle/util/normalizeText.ts
Normal file
10
app/src/protyle/util/normalizeText.ts
Normal 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, "```");
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue