Markdoc renderer for Astro
npm install astro-markdoc-rendererMarkdoc renderer for Astro.
``bash`
yarn add astro-markdoc-renderer
`jsx
---
import { MarkdocRenderer } from "astro-markdoc-renderer";
import type { Content } from "astro-markdoc-renderer";
import HeadingOne from "./HeadingOne.astro";
import YouTubeEmbed from "./YouTubeEmbed.astro";
type Props = {
content: Content;
};
const { content } = Astro.props;
const components = {
// custom tag
YouTubeEmbed: {
Component: YouTubeEmbed,
props: {},
},
//
``
MIT © Dinesh Pandiyan