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

Bundle all PrismJS languages #9233

Closed
dakkar opened this issue Nov 26, 2022 · 1 comment
Closed

Bundle all PrismJS languages #9233

dakkar opened this issue Nov 26, 2022 · 1 comment
Labels
✨Feature This adds/improves/enhances a feature

Comments

@dakkar
Copy link
Contributor

dakkar commented Nov 26, 2022

Summary

Currently, code blocks only highlight "markup" languages (html&c), CSS, Javascript, and "clike". These are the ones that are bundled by default in prismjs.

It's possible to bundle more language highlight definitions, at the expense of a larger prismjs file: bundling all languages produces 564KB file.

Doing so is a bit tricky (see my commit) but it works.

Is this a thing that could be merged?

@dakkar dakkar added the ✨Feature This adds/improves/enhances a feature label Nov 26, 2022
@kakkokari-gtyih
Copy link
Contributor

Not applicable as the highlighter has been changed to Shiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature
Projects
None yet
Development

No branches or pull requests

2 participants