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
|
@ -81,7 +81,6 @@ watchEffect(() => {
|
|||
font-bold sm:text-2xl text-xl
|
||||
:content="getDisplayName(account, { rich: true })"
|
||||
:emojis="account.emojis"
|
||||
:markdown="false"
|
||||
/>
|
||||
<AccountBotIndicator v-if="account.bot" />
|
||||
</div>
|
||||
|
|
|
@ -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