fix: revert removal of parsing rich content in display name
This reverts commit 5be48b102f
.
This commit is contained in:
parent
5be48b102f
commit
b545efeacc
4 changed files with 34 additions and 46 deletions
|
@ -5,17 +5,13 @@ defineOptions({
|
|||
name: 'ContentRich',
|
||||
})
|
||||
|
||||
const { content, emojis, markdown = true } = defineProps<{
|
||||
const props = defineProps<{
|
||||
content: string
|
||||
markdown?: boolean
|
||||
emojis?: Emoji[]
|
||||
}>()
|
||||
|
||||
export default () => h(
|
||||
'span',
|
||||
{ class: 'content-rich' },
|
||||
contentToVNode(content, {
|
||||
emojis: emojisArrayToObject(emojis || []),
|
||||
markdown,
|
||||
}),
|
||||
contentToVNode(props.content, emojisArrayToObject(props.emojis || [])),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue