-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clickable SVG directive/bypass #176
Comments
hey @Leenix, yeh interesting, can you provide an example SVG with these links in, and/or a link to the project which you are using this in |
Testing SVG attached. |
thanks, I'll try to have a look into, but it might not be straight away, since I'm pretty busy at the moment 🙄. |
No worries. Will give it a look. |
Same here. |
I'm trying to find a nice way of embedding links into SVG objects in place of a text TOC/hyperlinks between pages.
The problem is that the links are stripped out during parsing when included as an image, yet the links remain when viewing the image file in the _build folder. I could just use a target argument, but that makes the entire image a link, rather than the individual elements in the image.
Describe the solution you'd like
Ideally, I'd just use an svg-specific directive or modifier on the image directive that bypasses whatever process that strips the links.
Something like:
Describe alternatives you've considered
My current workaround is to include the image normally on the page with 0 height, so the image is copied on build, then use html to tag the file as an object.
I mean, it works, but it feels dirty and I lose any size controls that I usually have with the image directive.
The Jupyter-Book documentation also mentions that use of raw HTML is "highly discouraged", so is there an official solution that doesn't use this method?
Additional context
Relevant stackoverflow
The text was updated successfully, but these errors were encountered: