This repository has been archived on 2025-12-24. You can view files and clone it, but cannot push or open issues or pull requests.
site-template/ref/starlight/packages/markdoc/Code.astro
2025-03-07 14:59:06 +01:00

17 lines
439 B
Plaintext

---
import { Code as Default } from '@astrojs/starlight/components';
interface Props {
code: string;
lang?: string;
}
/**
* This component is a basic wrapper for the `<Code>` component from Starlight used for Markdoc
* fenced code blocks that ensures that we do not pass any child content to the `<Code>` component
* which is an usage not supported by Expressive Code and would throw an error.
*/
---
<Default {...Astro.props} />