Skip to content

Commit

Permalink
fix: emoji alt text
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 29, 2022
1 parent ea73107 commit 07622e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composables/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function contentToVNode(
.replace(/:([\w-]+?):/g, (_, name) => {
const emoji = customEmojis[name]
if (emoji)
return `<img src="${emoji.url}" alt="${name}" class="custom-emoji" />`
return `<img src="${emoji.url}" alt=":${name}:" class="custom-emoji" />`
return `:${name}:`
})
// handle code frames
Expand Down

0 comments on commit 07622e9

Please sign in to comment.