-
Notifications
You must be signed in to change notification settings - Fork 208
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
No syntax highlighting, only in Firefox, and only on newer built crates #359
Comments
The strange thing is that the rules are present but don't seem to be applied. I have no idea what's going on... |
This appears to be related to the "Source Code Pro" font. If I disable it, then the syntax highlighting works. I'm not sure if this is Firefox or a mismatch between font files and supported font-weights. If I change the CSS from @font-face {
font-family:'Source Code Pro';
font-style:normal;
font-weight:400;
src:url("SourceCodePro-Regular.woff") format('woff');
} and use my local version @font-face {
font-family:'Source Code Pro';
font-style:normal;
font-weight:400;
src:local("Source Code Pro");
} It works perfectly |
cc @nical |
We ... uh, fixed this when we updated Source Code Pro. I'm not sure why it's broken again. |
Wait, we fixed this in rustdoc. docs.rs may not have updated its fonts |
I no longer have this issue. |
I can't figure out why this is happening.
cargo doc
orcargo +nightly doc
I have no problems.Examples
https://docs.rs/url/1.7.2/url/
https://docs.rs/url/1.7.1/url/
The text was updated successfully, but these errors were encountered: