Skip to content

Commit bcc7a78

Browse files
committed
Fix content formatting for type pages
1 parent a31d2f9 commit bcc7a78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/pages/[theType].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
33
import { getCollection } from 'astro:content';
44
import { marked } from 'marked';
5+
import EnhancedMarkdown from '@src/components/EnhancedMarkdown.astro';
56
67
export async function getStaticPaths() {
78
const theTypes = await getCollection('types');
@@ -22,6 +23,5 @@ const { theType } = Astro.props;
2223
tableOfContents: false,
2324
}}>
2425

25-
<Fragment set:html={marked(theType.data.description)} />
26-
26+
<EnhancedMarkdown content={theType.data.description} />
2727
</StarlightPage>

0 commit comments

Comments
 (0)