From ab0ef47a9f4771dee53648247b51af02f96dc100 Mon Sep 17 00:00:00 2001 From: Denis Sokolov Date: Tue, 15 Apr 2025 21:53:56 +0200 Subject: [PATCH] fix: allow non-string rendered contents --- src/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 3ff6c8dd..95df689c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -194,7 +194,6 @@ class DiffViewer extends React.Component< const content = renderer ? renderer(wordDiff.value as string) : wordDiff.value; - if (typeof content !== "string") return; return wordDiff.type === DiffType.ADDED ? (