mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
14ce8a6ebf
* feat(markdoc): Add support for using a custom component for images * chore: changeset * test: add test * Update .changeset/shaggy-spies-sit.md Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
10 lines
245 B
JavaScript
10 lines
245 B
JavaScript
import { component, defineMarkdocConfig, nodes } from '@astrojs/markdoc/config';
|
|
|
|
export default defineMarkdocConfig({
|
|
tags: {
|
|
image: {
|
|
attributes: nodes.image.attributes,
|
|
render: component('./src/components/Image.astro'),
|
|
},
|
|
},
|
|
});
|