3 ms·
See also: Shiki https://shiki.matsu.io/ https://shiki.matsu.io/
by john-doe 5y ago
See also: Shiki https://shiki.matsu.io/ https://shiki.matsu.io/
- hunterb123 5y agoOoo nice one. Cool features I noticed: - VSCode theme support - Textmate grammar tokenizing - Multiple targets (SVG/PDF) - Annotations
- eyelidlessness 5y agoI was also gonna mention Shiki. While it is JS, you can SSR/SSG, and: - it uses VSCode grammars and themes, which is awesome. - it’s got some really cool extensions like Shiki Twoslash[1], allowing VSCode-like type hovers and type error demos. I’ve heard this can work without client-side JS but haven’t had the opportunity to check that out just yet. - with some effort, you can extract the inline styles to a stylesheet and support pure CSS dark mode (note to self: clean up and open source my implementation of this). 1: https://shikijs.github.io/twoslash/ https://shikijs.github.io/twoslash/
- john-doe 5y ago> (note to self: clean up and open source my implementation of this) Please do!
- eyelidlessness 5y agoI’ll try to get that out this weekend, now that I know there’s interest!