{"_id":"@microflash/rehype-figure","_rev":"7-25350fee606cb1c06453eae3b0b15cca","name":"@microflash/rehype-figure","dist-tags":{"latest":"2.1.4"},"versions":{"1.0.0":{"name":"@microflash/rehype-figure","version":"1.0.0","keywords":["unified","rehype","rehype-plugin","plugin","figure","caption","image"],"author":{"url":"https://www.naiyerasif.com","name":"Naiyer Asif"},"license":"MIT","_id":"@microflash/rehype-figure@1.0.0","maintainers":[{"name":"naiyer","email":"naiyer@hotmail.co.in"}],"homepage":"https://github.com/Microflash/rehype-figure#readme","bugs":{"url":"https://github.com/Microflash/rehype-figure/issues"},"ava":{"files":["test/**/*.test.js"]},"dist":{"shasum":"b4ad526e22e9b30a0d79d260f1bf7408c37ea921","tarball":"https://registry.npmjs.org/@microflash/rehype-figure/-/rehype-figure-1.0.0.tgz","fileCount":4,"integrity":"sha512-iVuzNiEBgujJnNlmpxbvEOfRk/4P48LlxosC/d7OKVKQRw8qj8uj81+axwhDECcbehIe686tPc+ZydcCtV7RTw==","signatures":[{"sig":"MEYCIQDuyIRh/fyEixztlkjy/qpU+UBqNyJ6Vopuuiyn10TsowIhAKYNbOBj6+ZoMEqNGNy2LVMgBfRRa8RFNwINM9qvBKBF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6368},"main":"index.js","type":"module","_from":"file:microflash-rehype-figure-1.0.0.tgz","scripts":{"test":"ava"},"_npmUser":{"name":"naiyer","email":"naiyer@hotmail.co.in"},"_resolved":"/private/var/folders/q1/z7_hxg3s1fv92djj21srp29h0000gn/T/ac6cc84f49909ddf6fadc14e82d06310/microflash-rehype-figure-1.0.0.tgz","_integrity":"sha512-iVuzNiEBgujJnNlmpxbvEOfRk/4P48LlxosC/d7OKVKQRw8qj8uj81+axwhDECcbehIe686tPc+ZydcCtV7RTw==","repository":{"url":"git+https://github.com/Microflash/rehype-figure.git","type":"git"},"_npmVersion":"9.8.0","description":"rehype plugin to transform an image with alt text to a figure with caption","directories":{},"_nodeVersion":"20.5.1","dependencies":{"hastscript":"^7.2.0","unist-util-visit":"^4.1.2","unist-util-remove":"^3.1.1","hast-util-whitespace":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^5.3.1","unified":"^10.1.2","remark-parse":"^10.0.2","remark-rehype":"^10.1.0","rehype-stringify":"^9.0.4"},"_npmOperationalInternal":{"tmp":"tmp/rehype-figure_1.0.0_1693128891817_0.8589958121895547","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@microflash/rehype-figure","version":"2.0.0","keywords":["unified","rehype","rehype-plugin","plugin","figure","caption","image"],"author":{"url":"https://www.naiyerasif.com","name":"Naiyer Asif"},"license":"MIT","_id":"@microflash/rehype-figure@2.0.0","maintainers":[{"name":"naiyer","email":"naiyer@hotmail.co.in"}],"homepage":"https://github.com/Microflash/rehype-figure#readme","bugs":{"url":"https://github.com/Microflash/rehype-figure/issues"},"ava":{"files":["test/**/*.test.js"]},"dist":{"shasum":"efb6fe5f718b213a98008532a511cca659c274e7","tarball":"https://registry.npmjs.org/@microflash/rehype-figure/-/rehype-figure-2.0.0.tgz","fileCount":4,"integrity":"sha512-mQodZlU7n+/YbOS6iJ9O6I+cT9dsOOImKsaOSiWh8bKycXRPCc16Fs3NGoofgupkYpJdX0oqjwmQL9j+tBcAGA==","signatures":[{"sig":"MEUCIQCMN5w7j+wQkNwcHQlmWGsAuVD1nAZXYuvuL4I4xHSF5QIgXif90R+2HsXOClZsOJKv2/fBhtOBzm4aQptJBZqOb6M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6369},"main":"index.js","type":"module","_from":"file:microflash-rehype-figure-2.0.0.tgz","scripts":{"test":"ava"},"_npmUser":{"name":"naiyer","email":"naiyer@hotmail.co.in"},"_resolved":"/private/var/folders/q1/z7_hxg3s1fv92djj21srp29h0000gn/T/d50871517081a4ee195195486937511d/microflash-rehype-figure-2.0.0.tgz","_integrity":"sha512-mQodZlU7n+/YbOS6iJ9O6I+cT9dsOOImKsaOSiWh8bKycXRPCc16Fs3NGoofgupkYpJdX0oqjwmQL9j+tBcAGA==","repository":{"url":"git+https://github.com/Microflash/rehype-figure.git","type":"git"},"_npmVersion":"9.8.0","description":"rehype plugin to transform an image with alt text to a figure with caption","directories":{},"_nodeVersion":"20.5.1","dependencies":{"hastscript":"^8.0.0","unist-util-visit":"^5.0.0","unist-util-remove":"^4.0.0","hast-util-whitespace":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^5.3.1","unified":"^11.0.2","remark-parse":"^10.0.2","remark-rehype":"^10.1.0","rehype-stringify":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rehype-figure_2.0.0_1693128909440_0.5460138020105203","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@microflash/rehype-figure","version":"2.1.0","keywords":["unified","rehype","rehype-plugin","plugin","figure","caption","image"],"author":{"url":"https://www.naiyerasif.com","name":"Naiyer Asif"},"license":"MIT","_id":"@microflash/rehype-figure@2.1.0","maintainers":[{"name":"naiyer","email":"naiyer@hotmail.co.in"}],"homepage":"https://github.com/Microflash/rehype-figure#readme","bugs":{"url":"https://github.com/Microflash/rehype-figure/issues"},"ava":{"files":["test/**/*.test.js"]},"dist":{"shasum":"70b7e8c916dd5d2b867a820c7d633a8d5f77e674","tarball":"https://registry.npmjs.org/@microflash/rehype-figure/-/rehype-figure-2.1.0.tgz","fileCount":4,"integrity":"sha512-Ff1rrqjRYcmV9/7Qk8HM/mBpz9k5yzO8pgKfbI2hnN09sBQXoeOP4d9J419Mwk+LoMZlSfd4kgI92dFRtYBvUg==","signatures":[{"sig":"MEYCIQCt40ceUYeJ78R/LUHtnQyTSRYqe1YRr8iTf1VyI1lctwIhAINn9N5GRSpRSzf7LQywDyTmnfr4gUGLr7KVc+mKarAh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6794},"main":"index.js","type":"module","_from":"file:microflash-rehype-figure-2.1.0.tgz","scripts":{"test":"ava"},"_npmUser":{"name":"naiyer","email":"naiyer@hotmail.co.in"},"_resolved":"/private/var/folders/_k/zvzdv6xj6671f2z7lyxys8640000gn/T/cb5abaf6b32273893bc49e6885f92a64/microflash-rehype-figure-2.1.0.tgz","_integrity":"sha512-Ff1rrqjRYcmV9/7Qk8HM/mBpz9k5yzO8pgKfbI2hnN09sBQXoeOP4d9J419Mwk+LoMZlSfd4kgI92dFRtYBvUg==","repository":{"url":"git+https://github.com/Microflash/rehype-figure.git","type":"git"},"_npmVersion":"10.5.0","description":"rehype plugin to transform an image with alt text to a figure with caption","directories":{},"_nodeVersion":"21.7.3","dependencies":{"hastscript":"^9.0.0","unist-util-visit":"^5.0.0","unist-util-remove":"^4.0.0","hast-util-whitespace":"^3.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.6","devDependencies":{"ava":"^6.1.2","unified":"^11.0.4","remark-parse":"^11.0.0","remark-rehype":"^11.1.0","rehype-stringify":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rehype-figure_2.1.0_1713026546259_0.46318133016453444","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@microflash/rehype-figure","version":"2.1.1","keywords":["unified","rehype","rehype-plugin","plugin","figure","caption","image"],"author":{"url":"https://www.naiyerasif.com","name":"Naiyer Asif"},"license":"MIT","_id":"@microflash/rehype-figure@2.1.1","maintainers":[{"name":"naiyer","email":"naiyer@hotmail.co.in"}],"homepage":"https://github.com/Microflash/rehype-figure#readme","bugs":{"url":"https://github.com/Microflash/rehype-figure/issues"},"dist":{"shasum":"fb58a1fda56bbf5352fa95e725ac4799c5061663","tarball":"https://registry.npmjs.org/@microflash/rehype-figure/-/rehype-figure-2.1.1.tgz","fileCount":4,"integrity":"sha512-wI9M4Yf+uhcolXkhRZAwGwyxjMfkXlPk6l2dVlyyQWFxQU3vPRJZKKKphafEMISdGd271MUVRNlnayUbn/cU0A==","signatures":[{"sig":"MEUCIHi4GFTmwpjY5gcOKFtwxy+OKcGQ8elVRg7FsicujcMCAiEA9FUO47mn/wpP68Mx4mHCy/3PqPz+F1JXc3CRNRH3yGI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6709},"main":"index.js","type":"module","_from":"file:microflash-rehype-figure-2.1.1.tgz","scripts":{"test":"vitest plugin"},"_npmUser":{"name":"naiyer","email":"naiyer@hotmail.co.in"},"_resolved":"/private/var/folders/m_/cw5z9qt56j1b_0sh2ny_8nxw0000gn/T/7b27d23fc40f1a70a40ee4f1a5d2f81c/microflash-rehype-figure-2.1.1.tgz","_integrity":"sha512-wI9M4Yf+uhcolXkhRZAwGwyxjMfkXlPk6l2dVlyyQWFxQU3vPRJZKKKphafEMISdGd271MUVRNlnayUbn/cU0A==","repository":{"url":"git+https://github.com/Microflash/rehype-figure.git","type":"git"},"_npmVersion":"10.8.2","description":"rehype plugin to transform an image with alt text to a figure with caption","directories":{},"_nodeVersion":"22.8.0","dependencies":{"hastscript":"^9.0.0","unist-util-visit":"^5.0.0","unist-util-remove":"^4.0.0","hast-util-whitespace":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.5","unified":"^11.0.5","remark-parse":"^11.0.0","remark-rehype":"^11.1.0","rehype-stringify":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rehype-figure_2.1.1_1725730814814_0.050351535686031124","host":"s3://npm-registry-packages"}},"2.1.2":{"name":"@microflash/rehype-figure","version":"2.1.2","keywords":["unified","rehype","rehype-plugin","plugin","figure","caption","image"],"author":{"url":"https://www.naiyerasif.com","name":"Naiyer Asif"},"license":"MIT","_id":"@microflash/rehype-figure@2.1.2","maintainers":[{"name":"naiyer","email":"naiyer@hotmail.co.in"}],"homepage":"https://github.com/Microflash/rehype-figure#readme","bugs":{"url":"https://github.com/Microflash/rehype-figure/issues"},"dist":{"shasum":"9b42775411127744616b25c1ed4d75b77561d074","tarball":"https://registry.npmjs.org/@microflash/rehype-figure/-/rehype-figure-2.1.2.tgz","fileCount":4,"integrity":"sha512-EgI5xnFmOxI1WI6Jk2bCVByPIYY11j1JPfjQGKEstoVci0kGJfCe9Fa3B7LZr+WWQMAm/hfcQ9Q4veBItiApVg==","signatures":[{"sig":"MEUCIQDI5o+sScqugCYEBBFFehpWMTbh1LUhOJ0K+4sWmaf+7AIgDV+Q/sn7VZ8PrgDvkxxeE6DQ4zjstkQgtGo/AvKdXjo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6709},"main":"index.js","type":"module","_from":"file:microflash-rehype-figure-2.1.2.tgz","scripts":{"test":"vitest plugin"},"_npmUser":{"name":"naiyer","email":"naiyer@hotmail.co.in"},"_resolved":"/private/var/folders/nx/6p9qmrgd54dcqj6f0c74kmz80000gn/T/9a9ee9ae240c79253228f64be436652b/microflash-rehype-figure-2.1.2.tgz","_integrity":"sha512-EgI5xnFmOxI1WI6Jk2bCVByPIYY11j1JPfjQGKEstoVci0kGJfCe9Fa3B7LZr+WWQMAm/hfcQ9Q4veBItiApVg==","repository":{"url":"git+https://github.com/Microflash/rehype-figure.git","type":"git"},"_npmVersion":"10.9.2","description":"rehype plugin to transform an image with alt text to a figure with caption","directories":{},"_nodeVersion":"23.6.1","dependencies":{"hastscript":"^9.0.0","unist-util-visit":"^5.0.0","unist-util-remove":"^4.0.0","hast-util-whitespace":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.4","unified":"^11.0.5","remark-parse":"^11.0.0","remark-rehype":"^11.1.1","rehype-stringify":"^10.0.1"},"_npmOperationalInternal":{"tmp":"tmp/rehype-figure_2.1.2_1738078151803_0.6755291360941955","host":"s3://npm-registry-packages-npm-production"}},"2.1.3":{"name":"@microflash/rehype-figure","version":"2.1.3","keywords":["unified","rehype","rehype-plugin","plugin","figure","caption","image"],"author":{"url":"https://www.naiyerasif.com","name":"Naiyer Asif"},"license":"MIT","_id":"@microflash/rehype-figure@2.1.3","maintainers":[{"name":"naiyer","email":"naiyer@hotmail.co.in"}],"homepage":"https://github.com/Microflash/rehype-figure#readme","bugs":{"url":"https://github.com/Microflash/rehype-figure/issues"},"dist":{"shasum":"8ed7e8419e176641b57405369d7106ddc5080111","tarball":"https://registry.npmjs.org/@microflash/rehype-figure/-/rehype-figure-2.1.3.tgz","fileCount":4,"integrity":"sha512-8YsyqLKPnshjjtXkleX85+d1JPRWcjqURg80MvJWWINFRSTljq4yDoHZjbGBZz96+M3asZFsHqGIaCCMdjXyaA==","signatures":[{"sig":"MEYCIQCoGHumVAGVXo/Z/ZKcsixNnO5HFvgW85JE5m5byY7Y2QIhAOUns/ggGMzTrzperWab7tbDl8KzkCR84qeqWhoJxCmU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6709},"main":"index.js","type":"module","_from":"file:microflash-rehype-figure-2.1.3.tgz","scripts":{"test":"vitest plugin"},"_npmUser":{"name":"naiyer","email":"naiyer@hotmail.co.in"},"_resolved":"/private/var/folders/nx/6p9qmrgd54dcqj6f0c74kmz80000gn/T/64e4dce0655e03c9e1f400ed96951b7f/microflash-rehype-figure-2.1.3.tgz","_integrity":"sha512-8YsyqLKPnshjjtXkleX85+d1JPRWcjqURg80MvJWWINFRSTljq4yDoHZjbGBZz96+M3asZFsHqGIaCCMdjXyaA==","repository":{"url":"git+https://github.com/Microflash/rehype-figure.git","type":"git"},"_npmVersion":"10.9.2","description":"rehype plugin to transform an image with alt text to a figure with caption","directories":{},"_nodeVersion":"23.7.0","dependencies":{"hastscript":"^9.0.0","unist-util-visit":"^5.0.0","unist-util-remove":"^4.0.0","hast-util-whitespace":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.5","unified":"^11.0.5","remark-parse":"^11.0.0","remark-rehype":"^11.1.1","rehype-stringify":"^10.0.1"},"_npmOperationalInternal":{"tmp":"tmp/rehype-figure_2.1.3_1738942451087_0.6911290818324707","host":"s3://npm-registry-packages-npm-production"}},"2.1.4":{"name":"@microflash/rehype-figure","version":"2.1.4","description":"rehype plugin to transform an image with alt text to a figure with caption","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","figure","caption","image"],"repository":{"type":"git","url":"git+https://github.com/Microflash/rehype-figure.git"},"bugs":{"url":"https://github.com/Microflash/rehype-figure/issues"},"homepage":"https://github.com/Microflash/rehype-figure#readme","author":{"name":"Naiyer Asif","url":"https://www.naiyerasif.com"},"type":"module","main":"index.js","dependencies":{"hast-util-whitespace":"^3.0.0","hastscript":"^9.0.1","unist-util-remove":"^4.0.0","unist-util-visit":"^5.0.0"},"devDependencies":{"rehype-stringify":"^10.0.1","remark-parse":"^11.0.0","remark-rehype":"^11.1.2","unified":"^11.0.5"},"scripts":{"snapshot":"node --test-update-snapshots ./test/plugin.test.js","test":"node --test ./test/plugin.test.js"},"_id":"@microflash/rehype-figure@2.1.4","_integrity":"sha512-57mUABQ2gEGoqZda+P2TawIpneQ37+dKglspet9o4otlw4PSLodvNtikhtFGLjRf7ODsy3IVRcqL823eKp6Czw==","_resolved":"/private/var/folders/nx/6p9qmrgd54dcqj6f0c74kmz80000gn/T/dced41371fb4ee997d9e4641eeffb2c2/microflash-rehype-figure-2.1.4.tgz","_from":"file:microflash-rehype-figure-2.1.4.tgz","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-57mUABQ2gEGoqZda+P2TawIpneQ37+dKglspet9o4otlw4PSLodvNtikhtFGLjRf7ODsy3IVRcqL823eKp6Czw==","shasum":"cb81a23db7dfdbc534436f8fed4c002a2604ad89","tarball":"https://registry.npmjs.org/@microflash/rehype-figure/-/rehype-figure-2.1.4.tgz","fileCount":4,"unpackedSize":6867,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCSTzSklA0DZ4FE4WBw5pLAR6mLpwkVFnLRhAMoUFLUDgIgP0AKbO+DLW4tvC2xa10eKJLpkNlTBCRCayCC5rW+dZE="}]},"_npmUser":{"name":"naiyer","email":"naiyer@hotmail.co.in"},"directories":{},"maintainers":[{"name":"naiyer","email":"naiyer@hotmail.co.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rehype-figure_2.1.4_1743611639828_0.3021929465297666"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-27T09:34:51.710Z","modified":"2025-04-02T16:34:00.236Z","1.0.0":"2023-08-27T09:34:51.997Z","2.0.0":"2023-08-27T09:35:09.639Z","2.1.0":"2024-04-13T16:42:26.419Z","2.1.1":"2024-09-07T17:40:14.938Z","2.1.2":"2025-01-28T15:29:11.985Z","2.1.3":"2025-02-07T15:34:11.296Z","2.1.4":"2025-04-02T16:34:00.066Z"},"bugs":{"url":"https://github.com/Microflash/rehype-figure/issues"},"author":{"name":"Naiyer Asif","url":"https://www.naiyerasif.com"},"license":"MIT","homepage":"https://github.com/Microflash/rehype-figure#readme","keywords":["unified","rehype","rehype-plugin","plugin","figure","caption","image"],"repository":{"type":"git","url":"git+https://github.com/Microflash/rehype-figure.git"},"description":"rehype plugin to transform an image with alt text to a figure with caption","maintainers":[{"name":"naiyer","email":"naiyer@hotmail.co.in"}],"readme":"# rehype-figure\n\n[![npm](https://img.shields.io/npm/v/@microflash/rehype-figure)](https://www.npmjs.com/package/@microflash/rehype-figure)\n[![regression](https://github.com/Microflash/rehype-figure/actions/workflows/regression.yml/badge.svg)](https://github.com/Microflash/rehype-figure/actions/workflows/regression.yml)\n[![license](https://img.shields.io/npm/l/@microflash/rehype-figure)](./LICENSE.md)\n\n[rehype](https://github.com/rehypejs/rehype) plugin to transform an image with alt text to a figure with caption\n\n## Status: feature complete\n\n> [!IMPORTANT]\n> Converting an image with alt text to a figure with caption is an [escape hatch](https://en.wiktionary.org/wiki/escape_hatch). Alt text, title, and captions have [different intended purposes](https://www.stylemanual.gov.au/content-types/images/alt-text-captions-and-titles-images), and you should eventually enhance your content to adopt them.\n\n- [What's this?](#whats-this)\n- [Install](#install)\n- [Use](#use)\n- [API](#api)\n- [License](#license)\n\n## What's this?\n\nThis package is a [unified](https://github.com/unifiedjs/unified) ([rehype](https://github.com/rehypejs/rehype)) plugin that takes an image node with alt text (e.g., `![Alt text](path-to-image.jpg)`) and converts it to a [figure](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure) element with caption.\n\n```html\n<figure>\n  <img src=\"path-to-image.jpg\" alt=\"Alt text\">\n  <figcaption>Alt Text</figcaption>\n</figure>\n```\n\n## Install\n\nThis package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).\n\nIn Node.js (16.0+), install with [npm](https://docs.npmjs.com/cli/install):\n\n```sh\nnpm install @microflash/rehype-figure\n```\n\n> For Node.js versions below 16.0, stick to 1.x.x versions of this plugin.\n\nIn Deno, with [esm.sh](https://esm.sh/):\n\n```js\nimport rehypeFigure from \"https://esm.sh/@microflash/rehype-figure\";\n```\n\nIn browsers, with [esm.sh](https://esm.sh/):\n\n```html\n<script type=\"module\">\n  import rehypeFigure from \"https://esm.sh/@microflash/rehype-figure?bundle\";\n</script>\n```\n\n## Use\n\nSay we have the following module `example.js`:\n\n```js\nimport { unified } from \"unified\";\nimport remarkParse from \"remark-parse\";\nimport remarkGfm from \"remark-gfm\";\nimport remarkRehype from \"remark-rehype\";\nimport rehypeFigure from \"@microflash/rehype-figure\";\nimport rehypeStringify from \"rehype-stringify\";\n\nmain()\n\nasync function main() {\n  const file = await unified()\n    .use(remarkParse)\n    .use(remarkGfm)\n    .use(remarkRehype)\n    .use(rehypeFigure)\n    .use(rehypeStringify)\n    .process(\"![Alt text](path-to-image.jpg)\");\n\n  console.log(String(file));\n}\n```\n\nRunning that with `node example.js` yields:\n\n```html\n<figure>\n  <img src=\"path-to-image.jpg\" alt=\"Alt Text\">\n  <figcaption>Alt Text</figcaption>\n</figure>\n```\n\n## API\n\nThe default export is `rehypeFigure`.\n\nThe following options are available. All of them are optional.\n\n- `className`: class for the wrapped `figure` element\n\nBy default, no classes are added to the `figure` element.\n\n## Development\n\n- Run `pnpm snapshot` to generate snapshots\n- Run `pnpm test` to run tests\n\n## License\n\n[MIT](./LICENSE.md)\n","readmeFilename":"README.md"}