Disable by image
You can disable lightbox of images separately by adding off-glb or customized class through markdown_extensions attr_list. Enable attr_list via mkdocs.yml:
Check more details about attr_list on the official document.
The customized classes could be set in plugin option:
Demo
The lightbox of the image with class off-glb or skip-lightbox (a custom class in plugin skip_classes options) is disabled.
{ .off-glb }
{ .skip-lightbox }



