--- import { markdownToHtml } from '@lib/markdown' import { getRepo } from '@lib/github' import styles from './index.module.css' type Props = { repo: string } const { repo } = Astro.props as Props const repoInfo = await getRepo(repo) if (!repoInfo) { console.info(`Repo ${repo} not found`) return } const { url, object } = repoInfo const changelogHtml = await markdownToHtml( object.text.replace('### Changelog', '') ) --- { repoInfo ? ( <>

Changelog

sourced from{' '} {`${repo}:CHANGELOG.md`}

) : null }