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

feat: import core of highlightjs without all languages #324

Closed
wants to merge 1 commit into from

Conversation

d3m1d0v
Copy link
Member

@d3m1d0v d3m1d0v commented Oct 18, 2023

When import main package (highlight.js), all avalilable languages are loaded automatically.

To import only core we need to import from highlight.js/lib/core

For more information see docs: https://highlightjs.org/#as-a-module

When import main package (`'highlight.js'`), all avalilable languages are loaded automatically.

To import only core we need to import from `'highlight.js/lib/core'`

For more information see docs: https://highlightjs.org/#as-a-module
@d3m1d0v d3m1d0v closed this Oct 7, 2024
@d3m1d0v d3m1d0v deleted the d3m1d0v-patch-1 branch October 7, 2024 08:53
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

Successfully merging this pull request may close these issues.

1 participant