From 5eccc85b783ba5a6461584bb0ab20a4082522486 Mon Sep 17 00:00:00 2001
From: ONLY-yours <1349021570@qq.com>
Date: Thu, 11 Apr 2024 23:11:39 +0800
Subject: [PATCH 1/2] :bug: fix: slove DOMPurify import error problem
---
src/Highlight/hooks/useShiki.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Highlight/hooks/useShiki.tsx b/src/Highlight/hooks/useShiki.tsx
index d020fbe9..cb30c458 100644
--- a/src/Highlight/hooks/useShiki.tsx
+++ b/src/Highlight/hooks/useShiki.tsx
@@ -1,4 +1,4 @@
-import * as DOMPurify from 'dompurify';
+import DOMPurify from 'dompurify';
import { useEffect, useState } from 'react';
import { getHighlighter, type Highlighter } from 'shiki/bundle/web';
import { themeConfig } from '../theme';
From 7bbbc2ac6529e2e21b3754ef66fcab7be8019cb3 Mon Sep 17 00:00:00 2001
From: Siniji <1349021570@qq.com>
Date: Fri, 12 Apr 2024 14:26:11 +0800
Subject: [PATCH 2/2] :sparkles: feat: update snapshot
---
tests/__snapshots__/demo.test.tsx.snap | 74 +++-----------------------
1 file changed, 6 insertions(+), 68 deletions(-)
diff --git a/tests/__snapshots__/demo.test.tsx.snap b/tests/__snapshots__/demo.test.tsx.snap
index 76b80899..7dec2564 100644
--- a/tests/__snapshots__/demo.test.tsx.snap
+++ b/tests/__snapshots__/demo.test.tsx.snap
@@ -15936,40 +15936,14 @@ export interface MarkdownProps {
const MemoHr = memo((props) => (
-