From 7f95eae40512ab0686e175db35c7659f5e02f0f4 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sun, 5 Oct 2025 20:01:41 +0100 Subject: [PATCH] fix: ensure highlights are shown for markdown content - Only show raw ReactMarkdown when there are no highlights - Wait for finalHtml (with highlights) when highlights are present - Prevents highlights from being bypassed during markdown conversion --- src/components/ContentPanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ContentPanel.tsx b/src/components/ContentPanel.tsx index 1d48b505..d72566f8 100644 --- a/src/components/ContentPanel.tsx +++ b/src/components/ContentPanel.tsx @@ -190,7 +190,7 @@ const ContentPanel: React.FC = ({ className={markdown ? "reader-markdown" : "reader-html"} dangerouslySetInnerHTML={{ __html: finalHtml }} /> - ) : markdown ? ( + ) : markdown && relevantHighlights.length === 0 ? (
= ({
) : ( -
+
) ) : (