#Custom Components in MD Files

6 messages · Page 1 of 1 (latest)

onyx void
tawdry fable
#

No but you can use a layout and put components in the layout, if you want to use components inside your markdown file you have to use MDX

onyx void
#

I will try it tomorrow. My idea is to enable mapping e.g. the img tag to an Image component even for an md file. I'd like to extend my plugin vite-astro-mdxcomponents to md files. I saw that it is possible to add component mappings when using the Content component of an imported Markdown file and wondered how I could use that to inject my configuration.

west plank