fix: emoji alt text
This commit is contained in:
parent
ea73107c23
commit
07622e9606
@ -56,7 +56,7 @@ export function contentToVNode(
|
|||||||
.replace(/:([\w-]+?):/g, (_, name) => {
|
.replace(/:([\w-]+?):/g, (_, name) => {
|
||||||
const emoji = customEmojis[name]
|
const emoji = customEmojis[name]
|
||||||
if (emoji)
|
if (emoji)
|
||||||
return `<img src="${emoji.url}" alt="${name}" class="custom-emoji" />`
|
return `<img src="${emoji.url}" alt=":${name}:" class="custom-emoji" />`
|
||||||
return `:${name}:`
|
return `:${name}:`
|
||||||
})
|
})
|
||||||
// handle code frames
|
// handle code frames
|
||||||
|
Loading…
Reference in New Issue
Block a user