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

The highlight.js demo is invalid. #716

Closed
taadis opened this issue Feb 2, 2016 · 3 comments
Closed

The highlight.js demo is invalid. #716

taadis opened this issue Feb 2, 2016 · 3 comments

Comments

@taadis
Copy link

taadis commented Feb 2, 2016

marked.setOptions({
  highlight: function (code) {
    return require('highlight.js').highlightAuto(code).value;
  }
});

highlight is invalid in the html page display.

@sebastianjonasson
Copy link

neither works for me.

@sebastianjonasson
Copy link

sebastianjonasson commented Jun 1, 2016

Actually, it did work by adding the css manually.

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/default.min.css">

@joshbruce
Copy link
Member

#983

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

3 participants