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 a31d2f9 commit bcc7a78Copy full SHA for bcc7a78
web/src/pages/[theType].astro
@@ -2,6 +2,7 @@
2
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
3
import { getCollection } from 'astro:content';
4
import { marked } from 'marked';
5
+import EnhancedMarkdown from '@src/components/EnhancedMarkdown.astro';
6
7
export async function getStaticPaths() {
8
const theTypes = await getCollection('types');
@@ -22,6 +23,5 @@ const { theType } = Astro.props;
22
23
tableOfContents: false,
24
}}>
25
- <Fragment set:html={marked(theType.data.description)} />
26
-
+ <EnhancedMarkdown content={theType.data.description} />
27
</StarlightPage>
0 commit comments