How to specify the link of left and right on GitHub #5593
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! The links are there. If you open the SVG in its own window you can see that you can click through to YouTube and GitHub. For the links to work in a web page, you need to embed the image using On GitHub, you simply can't do it. The link needs to be in the Markdown. Links embedded in SVG simply will not work. I think they're stripped out by camo. This is a long-standing security choice made by GitHub. There have been discussions about this over the years but I can't put my hands on them at the moment. Though an interesting bit of history is the PR that made logos work in GitHub, atmos/camo#74, which came out of the work done in #337. |
Beta Was this translation helpful? Give feedback.
Hi! The links are there. If you open the SVG in its own window you can see that you can click through to YouTube and GitHub.
For the links to work in a web page, you need to embed the image using
<object>
rather than<img>
.On GitHub, you simply can't do it. The link needs to be in the Markdown. Links embedded in SVG simply will not work.
I think they're stripped out by camo. This is a long-standing security choice made by GitHub. There have been discussions about this over the years but I can't put my hands on them at the moment. Though an interesting bit of history is the PR that made logos work in GitHub, atmos/camo#74, which came out of the work done in #337.