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

Shiki syntax highlight support #2530

Open
noraj opened this issue Feb 2, 2025 · 0 comments
Open

Shiki syntax highlight support #2530

noraj opened this issue Feb 2, 2025 · 0 comments
Milestone

Comments

@noraj
Copy link

noraj commented Feb 2, 2025

Feature request

Problem or desire

Prism syntax highlight is quite bad (highlight.js is bad too).

Proposal

Support Shiki.

Shiki has better syntax highlight because it uses TextMate grammar instead of shady regexp. It uses the same engine as in VS Code.

Implementation

I guess the only thing to do on doscify side, is to add a config option that allows to generate a different highlighter class prefix. That way all JS syntax highlighter could nearly be supported.

  • shiki: css class shiki
  • prism: css class language- prefix
  • highlightjs: css class hljs

https://shiki.style/guide/install#cdn-usage

@Koooooo-7 Koooooo-7 added this to the 5.x milestone Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants