Skip to content

How to specify the link of left and right on GitHub #5593

Answered by paulmelnikow
JeffreyYou asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JeffreyYou
Comment options

Answer selected by JeffreyYou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants