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

Pluggable syntax highlighter #3587

Open
amannn opened this issue Mar 12, 2024 · 1 comment
Open

Pluggable syntax highlighter #3587

amannn opened this issue Mar 12, 2024 · 1 comment

Comments

@amannn
Copy link

amannn commented Mar 12, 2024

My apologies if this is already possible, but any chance that highlight.js could be replaced by an alternative syntax highlighter like Shiki with some configuration?

highlight.js doesn't support React/JSX properly, given the popularity of React this is quite limiting in my experience.

Thank you for your help!

@hakimel
Copy link
Owner

hakimel commented Mar 15, 2024

Shiki looks really great.

It's not possible to swap highlight libs in the syntax highlight plugin that's included in this repo.

The best way to add a Shiki highlighter would be as a new reveal.js plugin. Considering how important syntax highlighting is to many reveal.js users, I think this new plugin could be included within the main reveal.js repo. Not something I have time to work on right now but will consider it :)

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

2 participants