Browse Source

renderer marp slide but bad

reiji-h 2 năm trước cách đây
mục cha
commit
f107cbc298
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      packages/presentation/src/components/Slides.tsx

+ 4 - 1
packages/presentation/src/components/Slides.tsx

@@ -85,7 +85,10 @@ export const Slides = (props: Props): JSX.Element => {
           <style>{css}</style>
         </Head>
         <div
-          dangerouslySetInnerHTML={{ __html: dompurify.sanitize(html) }}
+          // eslint-disable-next-line react/no-danger
+          dangerouslySetInnerHTML={{
+            __html: dompurify.sanitize(html),
+          }}
         />
       </>
     );