feat(widget): 添加 emoji 表情支持功能

- 添加 node-emoji 依赖库支持 emoji 解析
- 实现防错处理确保 emoji 渲染失败时返回原始文本
This commit is contained in:
zpj80231
2026-03-25 17:48:46 +08:00
parent 071f6bf6f7
commit bbfa65f78e
3 changed files with 32 additions and 4 deletions

View File

@@ -34,6 +34,7 @@
},
"dependencies": {
"dompurify": "^3.3.1",
"marked": "^17.0.1"
"marked": "^17.0.1",
"node-emoji": "^2.2.0"
}
}
}