Skip to content

Commit 9ff44dc

Browse files
authored
[Docs Site] Refactor 3rdparty.mdx for local dev performance (#19271)
1 parent 1bac760 commit 9ff44dc

File tree

3 files changed

+103132
-103126
lines changed

3 files changed

+103132
-103126
lines changed

src/components/Markdown.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ type Props = z.infer<typeof props>;
66
77
const props = z.object({
88
text: z.string(),
9+
inline: z.boolean().default(true),
910
});
1011
11-
const { text } = props.parse(Astro.props);
12+
const { text, inline } = props.parse(Astro.props);
1213
---
1314

14-
<Fragment set:html={marked.parseInline(text)} />
15+
<Fragment set:html={inline ? marked.parseInline(text) : marked.parse(text)} />

0 commit comments

Comments
 (0)