jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Image not clickable if height is not specified

Open giswqs opened this issue 3 years ago • 2 comments

Describe the bug

When inserting a figure, the figure image is not clickable if the height parameter is not specified. I would expect the image to be clickable even when the height parameter is not specified. https://jupyterbook.org/en/stable/content/figures.html?highlight=figure#figures

Reproduce the bug

Clickable code

Not clickable code

Demo: The first image is clickable while the second one is not. Peek 2022-05-26 09-22

List your environment

Jupyter Book : 0.12.3 External ToC : 0.2.4 MyST-Parser : 0.15.2 MyST-NB : 0.13.2 Sphinx Book Theme : 0.1.10 Jupyter-Cache : 0.4.3 NbClient : 0.5.13

giswqs avatar May 26 '22 13:05 giswqs

The same issue applies to the image directive.

I wasted several hours on this. I was able to work around this without changing the output by specifying scale:

```{image} image.png
:scale: 100%
```                                                                                                                                                                                             ```

Good to know. Thanks for sharing. I will borrow your workaround until this issue is fixed.

giswqs avatar Aug 08 '22 16:08 giswqs