Kaynağa Gözat

图片单独一行

李富豪 1 yıl önce
ebeveyn
işleme
52c7e143a8
1 değiştirilmiş dosya ile 9 ekleme ve 7 silme
  1. 9 7
      app/components/markdown.tsx

+ 9 - 7
app/components/markdown.tsx

@@ -221,13 +221,15 @@ function _MarkDownContent(props: { content: string }) {
           return <a {...aProps} target={target} />;
         },
         img: ({ src, alt }) => (
-          <Image
-            src={src}
-            alt={alt}
-            preview={{
-              mask: null
-            }}
-          />
+          <div>
+            <Image
+              src={src}
+              alt={alt}
+              preview={{
+                mask: null
+              }}
+            />
+          </div>
         ),
       }}
     >