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

highlight.js 8.0 issue #434

Closed
indigofeather opened this issue Jan 11, 2014 · 3 comments
Closed

highlight.js 8.0 issue #434

indigofeather opened this issue Jan 11, 2014 · 3 comments
Labels
bug Something isn't working

Comments

@indigofeather
Copy link

All keyword in code block is prefixed with hljs-, it will broken all highlight css.

http://highlightjs.org/

We're now prefixing all classes located in CSS classes reference with hljs-, by default, because some class names would collide with other people's stylesheets.

We can fix it by adding this in somewhere:

hljs.configure({classPrefix: ''}); 
@iarchean
Copy link

doesn't work for me, code still have no highlight, also in default theme.

hexo: 2.4.5
os: Darwin 13.0.0 darwin x64
http_parser: 1.0
node: 0.10.24
v8: 3.14.5.9
ares: 1.9.0-DEV
uv: 0.10.21
zlib: 1.2.3
modules: 11
openssl: 1.0.1e

demo here

@iarchean
Copy link

highlight is on:

highlight:
  enable: true
  line_number: true
  tab_replace:

@ds82
Copy link

ds82 commented Jun 12, 2014

I had the same issue. 2011453 fixed it for me.
@iarchean if you could confirm that my fix works I open a pull request ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants