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

Line number may be misplaced when additional themes is used #24

Open
ele828 opened this issue Jun 3, 2017 · 1 comment
Open

Line number may be misplaced when additional themes is used #24

ele828 opened this issue Jun 3, 2017 · 1 comment

Comments

@ele828
Copy link
Owner

ele828 commented Jun 3, 2017

I suppose this is caused by specific theme styles' incompatibility. Most of the themes work well, only some of them are misplaced.

vs theme:
image

@Luminoid
Copy link

Luminoid commented Mar 30, 2018

I'm using hexo-prism-plugin in hexo theme tranquilpeak. I've also encountered the problem that syntax highlighting of some grammar has incorrect line height.
I think the problem is caused by prismjs and hexo theme both use the .tag as a css selector, thus some tags in the code block are misrendered by hexo theme. To solve this problem, css selectors must have a unique prefix in the plugin or the theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants