ele828 / hexo-prism-plugin

Hexo plugin for code highlighting by prism.js, supporting JSX syntax
204 stars 51 forks source link

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

Open ele828 opened 7 years ago

ele828 commented 7 years ago

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 commented 6 years ago

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.