markdown-it-figure-gallery
v0.2.0
Published
A markdown-it plugin for wrapping images with figure or gallery block element
Downloads
3
Maintainers
Readme
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
, adddata-type=image
attribute to the wrapperfigcaption: Boolean
Default:false
, generate figcaptiongalleryClass: String
Default:md-gallery
, class name of the wrappergalleryImageClass: String
Default:null
, class name of the imagephotoswipeIntegration: Boolean
Default:false
, PhotoSwipe integrationschemaAttributes: Boolean
Default:true
, use schema.org attributeswrapImagesInLinks: Boolean
Default:false
, wrap image in<a>
tag
License
MIT © Chawye Hsu
Website · GitHub @chawyehsu · Twitter @chawyehsu