Skip to content

Commit 8b5ad91

Browse files
Display element type description
1 parent e84060f commit 8b5ad91

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

web/src/pages/[element].astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
33
import { getCollection } from 'astro:content';
4+
import { marked } from 'marked';
45
56
export async function getStaticPaths() {
67
const elements = await getCollection('elements');
@@ -17,5 +18,6 @@ const { element } = Astro.props;
1718
title: element.data.name,
1819
tableOfContents: false,
1920
}}>
20-
<p>TODO</p>
21+
<Fragment set:html={marked(element.data.description)} />
2122
</StarlightPage>
23+

web/src/pages/[func].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const funcPair = funcInfo.pair;
3030
<p><strong>Type:</strong> <span class={"side-"+funcType}>{funcTypePretty}</span></p>
3131

3232
{funcPair && (
33-
<p>Pair: <a href={ funcPair }>{ funcPair }</a></p>
33+
<p><strong>Pair:</strong> <a href={ funcPair }>{ funcPair }</a></p>
3434
)}
3535

3636
<!-- Description -->

0 commit comments

Comments
 (0)