Skip to content

Zoomable Images, unable to disable the function #3167

Description

@kaiserfro

Problem

Prior to 0.5.4, I had implemented my mdbook using glightbox for zooming and more importantly being able to scroll around large diagrams. With 0.5.4, now, all of the images are double rendering with a funny checkbox next to them.

It looks like image zooming was implemented and I'm not seeing a way to disable this behavior, to allow glightbox to take over again. Looking through the PR, it looks like there was talk about introducing a config control or a command line flag to revert to the old behavior, but I looked through the documentation updates and failed to see what the configuration was that did that. Perhaps I overlooked the configuration?

Steps

Add an image to the markdown file

![my diagram](diagram.svg)

Add the glightbox css and js to the mdbook config:

[output.html]
additional-css = ["theme/css/glightbox.min.css"]
additional-js = ["theme/js/glightbox.min.js"]
Image

Possible Solution(s)

Introduce a config entry to the mdbook.toml file that allows for the non-zoomable rendering.

Notes

No response

Version

mdbook --version
mdbook v0.5.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions