mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +01:00
🐛 Block attributes display abnormal emoji https://github.com/siyuan-note/siyuan/issues/14272
This commit is contained in:
parent
77131c5fec
commit
5800d7479b
1 changed files with 3 additions and 1 deletions
|
|
@ -72,7 +72,9 @@ func RemoveInvalid(text string) (ret string) {
|
|||
|
||||
func RemoveInvalidRetainCtrl(text string) (ret string) {
|
||||
ret = strings.ReplaceAll(text, "\u00A0", " ") // NBSP 转换为普通空格
|
||||
ret = gulu.Str.RemoveZeroWidthCharacters(ret)
|
||||
ret = gulu.Str.RemoveZeroWidthNoBreakSpace(ret)
|
||||
ret = gulu.Str.RemoveZeroWidthSpace(ret)
|
||||
// 不要移除零宽连字符,因为 emoji 需要 https://github.com/siyuan-note/siyuan/issues/14272
|
||||
ret = gulu.Str.RemovePUA(ret)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue