diff --git a/shared/editor/nodes/Emoji.tsx b/shared/editor/nodes/Emoji.tsx index a56f249fdd..ac1a265b1f 100644 --- a/shared/editor/nodes/Emoji.tsx +++ b/shared/editor/nodes/Emoji.tsx @@ -117,16 +117,14 @@ export default class Emoji extends Extension { const escapedAlt = state.esc(alt, false); const escapedUrl = state.esc(url, false); - const markdown = `${prefix}![${escapedAlt}](${escapedUrl} "custom-emoji")`; + const markdown = `${prefix}![:${escapedAlt}:](${escapedUrl} "custom-emoji")`; state.write(markdown); } else if (name) { state.write(`:${name}:`); } } - // to do: custom emoji conversion parseMarkdown() { - // const url = return { node: "emoji", getAttrs: (tok: Token) => {