rehype-figure-for-img
npm i rehype-figure-for-img
What is this?
rehpye plugin replace rehype-figure plugin.because it don't work
How to use it with astro?
- run
npm install rehype-figure-for-img
- go to astro.config.mjs
- edit javascript object and add
...
markdownOptions: {
render: [
'@astrojs/markdown-remark',
{
rehypePlugins: [
...
// add this
['rehype-figure-for-img'],
]
},
],
}
...