From df321beddec3a1c104da297997bddc6dadcba67e Mon Sep 17 00:00:00 2001 From: Bartosz Grajdek Date: Thu, 20 Jun 2024 14:46:09 +0200 Subject: [PATCH] feat: fix vertical alignment of cursor next to emoji --- 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..d4106984 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', lineHeight: 'normal'}); break; case 'mention-here': Object.assign(node.style, markdownStyle.mentionHere);