From c19bff1e21f02040b566b5bac85541c5e314d759 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Wed, 16 Oct 2024 20:48:29 +0100 Subject: [PATCH] Show normalized text in citation popup Fixes https://forums.zotero.org/discussion/118816/ligatures-in-the-hover-reference-popup --- .../view-popup/overlay-popup/reference/common/formated-text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/components/view-popup/overlay-popup/reference/common/formated-text.js b/src/common/components/view-popup/overlay-popup/reference/common/formated-text.js index 8ba58b82..77de4d3f 100644 --- a/src/common/components/view-popup/overlay-popup/reference/common/formated-text.js +++ b/src/common/components/view-popup/overlay-popup/reference/common/formated-text.js @@ -27,7 +27,7 @@ export default function FormattedText({ chars, onOpenLink }) { // Convert the chars array to JSX by grouping and formatting const formattedText = React.useMemo(() => { return chars.reduce((acc, char, index) => { - const { u: currentChar, bold: isBold, italic: isItalic, url, spaceAfter } = char; + const { c: currentChar, bold: isBold, italic: isItalic, url, spaceAfter } = char; if (!char.ignorable) { // Start a new group if different style or first character if (index === 0 || acc[acc.length - 1].isBold !== isBold || acc[acc.length - 1].isItalic !== isItalic || acc[acc.length - 1].url !== url) {