0.2.0 • Published 3 years ago

markdown-it-figure-gallery v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

markdown-it-figure-gallery

A markdown-it plugin for wrapping images with figure tag or gallery block element

This plugin is based on the arve0/markdown-it-implicit-figures plugin and the amokrushin/markdown-it-gallery plugin.

Usage

Options

  • dataType: Boolean Default: false, add data-type=image attribute to the wrapper
  • figcaption: Boolean Default: false, generate figcaption
  • galleryClass: String Default: md-gallery, class name of the wrapper
  • galleryImageClass: String Default: null, class name of the image
  • photoswipeIntegration: Boolean Default: false, PhotoSwipe integration
  • schemaAttributes: Boolean Default: true, use schema.org attributes
  • wrapImagesInLinks: Boolean Default: false, wrap image in <a> tag

License

MIT © Chawye Hsu

Website · GitHub @chawyehsu · Twitter @chawyehsu