techniq / svelte-ux

Collection of Svelte components, actions, stores, and utilities to build highly interactive applications.
https://svelte-ux.techniq.dev/
MIT License
826 stars 46 forks source link

Improve Preview / Code examples #62

Open techniq opened 1 year ago

techniq commented 1 year ago
techniq commented 1 year ago

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

techniq commented 7 months ago

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

techniq commented 6 months ago

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

brandonmcconnell commented 3 months ago

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!