Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Image as hyperlink doesn't work in GitHub's render of .ipynb file #2021

Closed
martinm07 opened this issue Aug 4, 2021 · 2 comments
Closed

Image as hyperlink doesn't work in GitHub's render of .ipynb file #2021

martinm07 opened this issue Aug 4, 2021 · 2 comments

Comments

@martinm07
Copy link

Describe the bug
When using an image as a hyperlink (e.g. [![alt text](image.jpg)](https://www.example.com)) in a jupyter notebook, and displaying that notebook in GitHub's online viewer, trying to click on the link (i.e. image) will (instead of bringing you to that hyperlink) just do nothing. Or on Chrome, it also replaces the entire notebook with a gray box saying "This content is blocked. Contact the site owner to fix the issue.".

Screenshot (4)

To Reproduce
Make a .ipynb file that contains the following in a markdown cell:

[![alt text](https://via.placeholder.com/150)](https://google.com)

Then, upload the file to GitHub in a repository, open the file in GitHub, and try to click on the image.

Expected behavior
When clicking on the image hyperlink, it should take you to that link.

Additional context
If you right-click on the image and select "Open link in new tab", it works, opening the correct link the new tab.
Also, if you try click on the link but not on the image (the link is bigger than the image), then it also works, bringing you to the correct link.

@github-actions
Copy link

github-actions bot commented Aug 4, 2021

GitHub staff are eager to continue in conversations and knowledge-sharing with you. We invite you to head over to Feedback Discussions and share your product feedback and questions directly with us (noted here). Once you have added your thoughts in Feedback Discussions, we ask that you close this newly-created issue. Otherwise, we will keep this issue open for the next 7 days, then will close it.

@michellemerrill
Copy link
Collaborator

Closing per #2021 (comment)

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants