From c190dc29509f9216253a48ba72513361ed67a995 Mon Sep 17 00:00:00 2001 From: Junseo Park Date: Wed, 28 Apr 2021 19:24:56 +0900 Subject: [PATCH] Update utils/ShowdownExtensions.ts Co-authored-by: zero734kr --- utils/ShowdownExtensions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}