├── .github └── workflows │ └── regression.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── index.js ├── package.json ├── pnpm-lock.yaml └── test ├── fixtures.js ├── plugin.test.js └── snapshots ├── image_with_alt_text_and_custom_classes.html ├── image_with_alt_text_and_custom_classes.snap.html ├── image_with_alt_text_as_plaintext.html ├── image_with_alt_text_as_plaintext.snap.html ├── image_with_alt_text_containing_markdown.html ├── image_with_alt_text_containing_markdown.snap.html ├── image_with_no_alt_text.html ├── image_with_no_alt_text.snap.html ├── link_with_image.html ├── link_with_image.snap.html ├── paragraph_with_no_images.html ├── paragraph_with_no_images.snap.html ├── paragraph_with_only_images.html ├── paragraph_with_only_images.snap.html ├── raw_image_markup_with_caption.html ├── raw_image_markup_with_caption.snap.html ├── raw_image_markup_without_caption.html └── raw_image_markup_without_caption.snap.html /.github/workflows/regression.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/.github/workflows/regression.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/README.md -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/pnpm-lock.yaml -------------------------------------------------------------------------------- /test/fixtures.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/fixtures.js -------------------------------------------------------------------------------- /test/plugin.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/plugin.test.js -------------------------------------------------------------------------------- /test/snapshots/image_with_alt_text_and_custom_classes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/image_with_alt_text_and_custom_classes.html -------------------------------------------------------------------------------- /test/snapshots/image_with_alt_text_and_custom_classes.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/image_with_alt_text_and_custom_classes.snap.html -------------------------------------------------------------------------------- /test/snapshots/image_with_alt_text_as_plaintext.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/image_with_alt_text_as_plaintext.html -------------------------------------------------------------------------------- /test/snapshots/image_with_alt_text_as_plaintext.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/image_with_alt_text_as_plaintext.snap.html -------------------------------------------------------------------------------- /test/snapshots/image_with_alt_text_containing_markdown.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/image_with_alt_text_containing_markdown.html -------------------------------------------------------------------------------- /test/snapshots/image_with_alt_text_containing_markdown.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/image_with_alt_text_containing_markdown.snap.html -------------------------------------------------------------------------------- /test/snapshots/image_with_no_alt_text.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/image_with_no_alt_text.snap.html: -------------------------------------------------------------------------------- 1 | "\"\"" -------------------------------------------------------------------------------- /test/snapshots/link_with_image.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/link_with_image.html -------------------------------------------------------------------------------- /test/snapshots/link_with_image.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/link_with_image.snap.html -------------------------------------------------------------------------------- /test/snapshots/paragraph_with_no_images.html: -------------------------------------------------------------------------------- 1 |

A paragraph bereft of images

-------------------------------------------------------------------------------- /test/snapshots/paragraph_with_no_images.snap.html: -------------------------------------------------------------------------------- 1 | "

A paragraph bereft of images

" -------------------------------------------------------------------------------- /test/snapshots/paragraph_with_only_images.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/paragraph_with_only_images.html -------------------------------------------------------------------------------- /test/snapshots/paragraph_with_only_images.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/paragraph_with_only_images.snap.html -------------------------------------------------------------------------------- /test/snapshots/raw_image_markup_with_caption.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/raw_image_markup_with_caption.html -------------------------------------------------------------------------------- /test/snapshots/raw_image_markup_with_caption.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/raw_image_markup_with_caption.snap.html -------------------------------------------------------------------------------- /test/snapshots/raw_image_markup_without_caption.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/raw_image_markup_without_caption.html -------------------------------------------------------------------------------- /test/snapshots/raw_image_markup_without_caption.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-figure/main/test/snapshots/raw_image_markup_without_caption.snap.html --------------------------------------------------------------------------------