Skip to content
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

Fix color of code spans that are links. #905

Merged
merged 1 commit into from
May 2, 2019

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented May 2, 2019

Linked code span colors were fixed in #289, but the fix was lost in #315 when inline code colors were added. The issue (I believe) is that the specificity of :not(pre) > .hljs is greater than a > .hljs. I added a new rule which applies the inline color, but excludes a tags.

Fixes #537

This is has been reported in several other places: rust-lang/book#1115, rust-lang/cargo#6862

Theme Example
Light image
Rust image
Coal image
Navy image
Ayu image

@Dylan-DPC-zz Dylan-DPC-zz merged commit 07a64b1 into rust-lang:master May 2, 2019
@Dylan-DPC-zz
Copy link

Thanks

Ruin0x11 pushed a commit to Ruin0x11/mdBook that referenced this pull request Aug 30, 2020
Fix color of `code spans` that are links.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"color: #6e6b5e;" makes some links invisible
2 participants