It's a minor issue, but I'm pretty sure you'd want to underline the link instead when I hover over it.
The below image shows the line when hovering over the first link.

Screenshot taken here: https://nodejs.org/en/blog/release/v4.3.1/
Can confirm.
I think it is a difficult problem.
Because we can not attach class to this elements.(because it is unfolded in markdown by metalsmith)
I tried to use {: .fuga} but could not apply class selector in metalsmith;(
https://github.com/nodejs/nodejs.org/blob/master/layouts/css/base.styl#L32
This does the trick:
a > code {
padding: .25em;
}
It pads it as such where you cannot see the green background.
@kahwee I do not recommend it. Because it is not improved in IE11.
IE11 needs .32em.
Good note. I didn't have IE to test on. This is one way too:
a[href*="/commit/"] {
background: #f0f0f0;
}
nice :+1:
however I notice this page has same problem... :cry:
how do we resolve above?
This doesn't scale well:
a[href*="/api/"], a[href*="/commit/"] {
background-color: #f0f0f0;
}
What do you think?
I agree with your opinion. This code doesn't scale well.
The best is to attach a class but I think it difficult.
@fhemberger Do you have any thoughts?
This seems to work well (just a quick test):
a:hover code {
background-color: transparent;
color: #fff;
}
So the hover effect just looks the same as for regular links.
Was playing with this last day and ended up with the same solution proposed by @fhemberger.
I think it's the simplest one, and it's consistent with other links.
I feel the same way.
@fhemberger's solution looks good to me.
Most helpful comment
This seems to work well (just a quick test):
So the hover effect just looks the same as for regular links.