fix: Marked 不解析 \n, 手動解析以使換行符正常使用

This commit is contained in:
CrescentLeaf
2025-10-01 01:03:39 +08:00
parent a709ac7ee0
commit 73e795e29f

View File

@@ -272,7 +272,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC
'alt', 'alt',
'href', 'href',
], ],
}) }).replaceAll('\n', '<br>')
const lastDate = date const lastDate = date
date = new Date(msg.time) date = new Date(msg.time)