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

Improve Preview / Code examples #62

Open
3 tasks
techniq opened this issue Jun 10, 2023 · 4 comments
Open
3 tasks

Improve Preview / Code examples #62

techniq opened this issue Jun 10, 2023 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@techniq
Copy link
Owner Author

techniq commented Nov 13, 2023

Shikiji might be even better, which is an ESM-focused rewrite of shiki

@techniq techniq added the documentation Improvements or additions to documentation label Feb 18, 2024
@techniq
Copy link
Owner Author

techniq commented Apr 24, 2024

Shikiji was merged into shiki. Also using twoslash (similar to kit's docs) would be great.

@techniq
Copy link
Owner Author

techniq commented Apr 27, 2024

Another reference: https://github.com/joshnuss/airbadge/blob/main/apps/docs/src/lib/highlighter.js

@brandonmcconnell
Copy link
Contributor

This example implements the ESM version of Shiki (v1+) into SvelteKit. Might serve as a good inspo or example.
https://github.com/rodneylab/sveltekit-shiki-code-highlighting

These appear to be the key files:


@rodneylab have you released a package version of your repo that can be installed without needing to copy everything from those files^ verbatim into existing projects?

Thanks for putting in all the work on this btw!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants