We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bac760 commit 9ff44dcCopy full SHA for 9ff44dc
src/components/Markdown.astro
@@ -6,9 +6,10 @@ type Props = z.infer<typeof props>;
6
7
const props = z.object({
8
text: z.string(),
9
+ inline: z.boolean().default(true),
10
});
11
-const { text } = props.parse(Astro.props);
12
+const { text, inline } = props.parse(Astro.props);
13
---
14
-<Fragment set:html={marked.parseInline(text)} />
15
+<Fragment set:html={inline ? marked.parseInline(text) : marked.parse(text)} />
0 commit comments