rehype-figure-for-img
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

rehype-figure-for-img

npm i rehype-figure-for-img

What is this?

rehpye plugin replace rehype-figure plugin.

because it don't work at lest with me.

How to use it with astro?

  1. run npm install rehype-figure-for-img

  2. go to astro.config.mjs

  3. edit javascript object and add

...
markdownOptions: {
    render: [
	    '@astrojs/markdown-remark',
		    {
            rehypePlugins: [
                ...
                // add this
                ['rehype-figure-for-img'],
            ]
		    },
	],
	}
...

Package Sidebar

Install

npm i rehype-figure-for-img

Weekly Downloads

3

Version

0.0.6

License

MIT

Unpacked Size

5.4 kB

Total Files

5

Last publish

Collaborators

  • x7md