Skip to content

Commit caaa003

Browse files
author
Stefan van den Oord
committed
Improves readability of code-in-hyperlinks
If you do something like \[\`foo\`\](http://bar), the link was rendered with a black background color. Background color and foreground color are now the same as those for normal inline code.
1 parent 7be0c1a commit caaa003

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/components/Content.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ const ContentBody = styled.div`
109109
border-bottom: 2px solid white;
110110
}
111111
}
112+
113+
& :not(pre) a code[class*='language-'] {
114+
color: #222222cc;
115+
background-color: rgba(255, 229, 100, 0.2);
116+
}
112117
`
113118

114119
class Content extends React.Component {

0 commit comments

Comments
 (0)