From 60554fef1a4061b94ba6e4b999445f7fd719a583 Mon Sep 17 00:00:00 2001 From: Bartosz Grajdek Date: Fri, 21 Jun 2024 23:38:19 +0200 Subject: [PATCH] Fix emoji vertical alignment (#395) --- src/web/parserUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/parserUtils.ts b/src/web/parserUtils.ts index 3758bbaf..49583b9f 100644 --- a/src/web/parserUtils.ts +++ b/src/web/parserUtils.ts @@ -34,7 +34,7 @@ function addStyling(targetElement: HTMLElement, type: MarkdownType, markdownStyl node.style.textDecoration = 'line-through'; break; case 'emoji': - Object.assign(node.style, markdownStyle.emoji); + Object.assign(node.style, {...markdownStyle.emoji, verticalAlign: 'middle'}); break; case 'mention-here': Object.assign(node.style, markdownStyle.mentionHere);