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

Plugin seems to be replacing the font #16

Closed
shreedhanvaidya opened this issue Aug 14, 2016 · 3 comments
Closed

Plugin seems to be replacing the font #16

shreedhanvaidya opened this issue Aug 14, 2016 · 3 comments

Comments

@shreedhanvaidya
Copy link

The plugin is replacing the font on pre and code blocks.

Example URL: http://excelcheat.net/remove-trailing-slash/ (plugin is active at the moment)

Preview with plugin deactivated:
image

Preview with plugin active:
image

Might be an issue with the theme I'm using, just wanted to flag!

@kasparsd
Copy link
Owner

@shreedhanvaidya Are those two screenshots supposed to have the same content?

I'm seeing the following font rule for the pre block in the style.css of your theme (line 2952):

code,
kbd,
pre,
samp {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

I'm not sure why it would be different with this plugin deactivated.

@kasparsd
Copy link
Owner

@shreedhanvaidya So your theme specifies a different font for span elements:

span {
  font-family: 'Noto sans', sans-serif;
}

which are added by the Prettify library to parts of code to specify/target the syntax type.

@shreedhanvaidya
Copy link
Author

Thanks for your help! I feel pretty stupid! I'll remove that now.

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

No branches or pull requests

2 participants