diff --git a/content/docs/index.zh.mdx b/content/docs/index.zh.mdx
index 3b2246c..0c50edd 100644
--- a/content/docs/index.zh.mdx
+++ b/content/docs/index.zh.mdx
@@ -244,6 +244,10 @@ export const source = loader({
+## 视频教程
+
+
+
## 了解更多
-刚来这里?别担心,我们欢迎您的问题。
\ No newline at end of file
+刚来这里?别担心,我们欢迎您的问题。
\ No newline at end of file
diff --git a/content/docs/markdown.mdx b/content/docs/markdown.mdx
index 47fabf1..2f74fbe 100644
--- a/content/docs/markdown.mdx
+++ b/content/docs/markdown.mdx
@@ -337,6 +337,8 @@ Images are automatically optimized for `next/image`.

```
+
+
## Optional
Some optional plugins you can enable.
diff --git a/content/docs/markdown.zh.mdx b/content/docs/markdown.zh.mdx
index 46403b6..85a0ecc 100644
--- a/content/docs/markdown.zh.mdx
+++ b/content/docs/markdown.zh.mdx
@@ -246,7 +246,7 @@ console.log('Hello World');
```
````
-### 高亮行
+### 高亮行
````md
```tsx
@@ -335,6 +335,8 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

```
+
+
## 可选功能
一些您可以启用的可选插件。
diff --git a/public/images/docs/webhook.png b/public/images/docs/webhook.png
deleted file mode 100644
index 4f9f31d..0000000
Binary files a/public/images/docs/webhook.png and /dev/null differ
diff --git a/src/components/docs/image-wrapper.tsx b/src/components/docs/image-wrapper.tsx
new file mode 100644
index 0000000..15fd97f
--- /dev/null
+++ b/src/components/docs/image-wrapper.tsx
@@ -0,0 +1,28 @@
+import { ImageZoom } from 'fumadocs-ui/components/image-zoom';
+import type { ComponentProps, FC } from 'react';
+
+interface ImageWrapperProps extends ComponentProps<'img'> {
+ src: string;
+ alt?: string;
+}
+
+export const ImageWrapper = ({ src, alt }: ImageWrapperProps) => {
+ if (!src) {
+ return null;
+ }
+
+ return (
+
+ );
+};
diff --git a/src/components/shared/custom-mdx-content.tsx b/src/components/shared/custom-mdx-content.tsx
index b34c315..5ad2fb9 100644
--- a/src/components/shared/custom-mdx-content.tsx
+++ b/src/components/shared/custom-mdx-content.tsx
@@ -1,10 +1,10 @@
+import { ImageWrapper } from '@/components/docs/image-wrapper';
import { Wrapper } from '@/components/docs/wrapper';
import { YoutubeVideo } from '@/components/docs/youtube-video';
import { MDXContent } from '@content-collections/mdx/react';
import { Accordion, Accordions } from 'fumadocs-ui/components/accordion';
import { Callout } from 'fumadocs-ui/components/callout';
import { File, Files, Folder } from 'fumadocs-ui/components/files';
-import { ImageZoom } from 'fumadocs-ui/components/image-zoom';
import { Step, Steps } from 'fumadocs-ui/components/steps';
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { TypeTable } from 'fumadocs-ui/components/type-table';
@@ -52,26 +52,7 @@ export async function CustomMDXContent({
Folder,
Files,
blockquote: Callout as unknown as FC>,
- img: (props: ComponentProps<'img'>) => {
- if (!props.src) {
- return null;
- }
-
- return (
-
- );
- },
+ img: ImageWrapper,
});
}