fix: fixed the bug where # would appear when typing without rich text plugin being loaded

This is a small probability event, but it does exist
pull/147/merge
moonrailgun 1 year ago
parent 6d010c599f
commit e768bd11f9

@ -146,7 +146,7 @@ export const [getMessageRender, regMessageRender] = buildRegFn<
*
*/
const defaultMessageTextDecorators = {
url: (url: string, label?: string) => url,
url: (url: string, label?: string) => (label ? `${label}(${url})` : url),
image: (plain: string, attrs: Record<string, unknown>) => plain,
card: (
plain: string,

Loading…
Cancel
Save