forked from Mirrors/elk
fix: emoji alt text
This commit is contained in:
parent
ea73107c23
commit
07622e9606
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue