@microflash/rehype-figure enhances your content by automatically wrapping images within <figure> and <figcaption> elements in your rehype (unified) pipelines. This promotes semantic HTML and facilitates better styling of images with captions. It accepts customizable options, allowing control over alt text implementation for enhanced accessibility. This enables you to easily structure and manage captioned images across your markdown or MDX content, improving overall readability and SEO.
The @microflash/rehype-figure npm package saw initial releases in August 2023 (versions 1.0.0 and 2.0.0). Releases were sporadic afterward, with single versions in April 2024 (2.1.0), September 2024 (2.1.1), January 2025 (2.1.2), February 2025 (2.1.3), and April 2025 (2.1.4). There have been no releases since April 2025.
@microflash/rehype-figure downloads surged from March 2024, peaking in December 2024. Downloads remained high in early 2025 before declining over the last few months. September 2025 figures are incomplete but reflect a continued downward trend.