diff --git a/utils/ShowdownExtensions.ts b/utils/ShowdownExtensions.ts index 01d1f61..e4b2ba4 100644 --- a/utils/ShowdownExtensions.ts +++ b/utils/ShowdownExtensions.ts @@ -21,7 +21,7 @@ export const anchorHeader = { export const twemoji = { type: 'output', - regex: `${Emoji}{2}|${Emoji}`, + regex: `${Emoji}{1,2}`, replace: function(__match: string, two: string, one: string) { const parsed = __match || two || one const emoj = Twemoji.parse(parsed, { folder: 'svg', ext: '.svg' }) @@ -38,4 +38,4 @@ export const customEmoji = { if(!name || !result) return `:${name}:` return `${name}` } -} \ No newline at end of file +}