Skip to content

Commit cfccda6

Browse files
committed
docs: remove image from readme on storybook
1 parent 6068b44 commit cfccda6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/stories/Introduction.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import Intro from "../../README.md?raw";
22
import { Markdown } from "@storybook/blocks";
33

44
export const Introduction = ({ content }) => {
5-
return content.replace(/\[([^\]]+)\]\(([^)]+)\)/g, (match, p1, p2) => {
6-
return p2.includes("http") ? match : `[${p1}](https://github.com/ZebraDevs/zeta-web/blob/main/${p2})`;
7-
});
5+
return content.replace(/<picture[\s\S]*?<\/picture>/gi, "");
86
};
97

108
<Markdown>{Introduction({ content: Intro })}</Markdown>

0 commit comments

Comments
 (0)