0.2.0 • Published 4 years ago
markdown-it-figure-gallery v0.2.0
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: BooleanDefault:false, adddata-type=imageattribute to the wrapperfigcaption: BooleanDefault:false, generate figcaptiongalleryClass: StringDefault:md-gallery, class name of the wrappergalleryImageClass: StringDefault:null, class name of the imagephotoswipeIntegration: BooleanDefault:false, PhotoSwipe integrationschemaAttributes: BooleanDefault:true, use schema.org attributeswrapImagesInLinks: BooleanDefault:false, wrap image in<a>tag
License
MIT © Chawye Hsu
Website · GitHub @chawyehsu · Twitter @chawyehsu