fix: revert removal of parsing rich content in display name

This reverts commit 5be48b102f.
This commit is contained in:
Daniel Roe 2022-12-17 16:06:45 +00:00
parent 5be48b102f
commit b545efeacc
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55
4 changed files with 34 additions and 46 deletions

View file

@ -13,12 +13,9 @@ import AccountHoverWrapper from '~/components/account/AccountHoverWrapper.vue'
*/
export function contentToVNode(
content: string,
{ emojis = {}, markdown = true }: {
emojis?: Record<string, Emoji>
markdown?: boolean
} = {},
customEmojis: Record<string, Emoji> = {},
): VNode {
const tree = parseMastodonHTML(content, emojis, markdown)
const tree = parseMastodonHTML(content, customEmojis)
return h(Fragment, (tree.children as Node[]).map(n => treeToVNode(n)))
}