You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// require the highlight.js library including all languages
const hljs = require('./highlight.js');
// require the highlight.js library without languages
- const hljs = require("highlight.js/lib/highlight.js");+ const hljs = require("highlight.js/core.js");
We could slide this change in with v10. I hate the redundancy and think this is a bit nicer. Unless there is some JS convention here that says the other way is the normal way everyone expects libraries to be structured?
I think we could even preserve the old API and just deprecate it.
Suggestion:
We could slide this change in with v10. I hate the redundancy and think this is a bit nicer. Unless there is some JS convention here that says the other way is the normal way everyone expects libraries to be structured?
I think we could even preserve the old API and just deprecate it.
@egor-rogov Thoughts?
The text was updated successfully, but these errors were encountered: