WIP: Shiki based syntax highlighting in codemirror
First commit is just a proof of concept.
Switching between languages will be the main thing to figure out from here.
- https://github.com/fengzilong/codemirror-shiki/tree/main
- https://discuss.codemirror.net/t/shiki-integration-for-codemirror/9538
Run & review this pull request in StackBlitz Codeflow.
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
| Diff | Package | Supply Chain Security |
Vulnerability | Quality | Maintenance | License |
|---|---|---|---|---|---|---|
| @shikijs/themes@3.13.0 | ||||||
| shiki@3.13.0 | ||||||
| ember-repl@7.0.0 ⏵ 7.0.1 | ||||||
| codemirror-shiki@0.3.0 | ||||||
| @shikijs/langs@3.13.0 |
[!WARNING] Review the following alerts detected in dependencies.
According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
| Action | Severity | Alert (click "▶" to expand/collapse) |
|---|---|---|
| Warn |
|
| Project | Preview URL[^note] | Manage |
|---|---|---|
| Limber | https://shiki-highlighter.limber-glimdown.pages.dev | on Cloudflare |
| Tutorial | https://shiki-highlighter.limber-glimmer-tutorial.pages.dev | on Cloudflare |
[^note]: if these branch preview links are not working, please check the logs for the commit-based preview link. There is a character limit of 28 for the branch subdomain, as well as some other heuristics, described here for the sake of implementation ease in deploy-preview.yml, that algo has been omitted. The URLs are logged in the wrangler output, but it's hard to get outputs from a matrix job.
EXCITE!