A syntax highlighter based on TextMate grammars. ESM rewrite of shiki, with more features and capabilities.
none
theme - by @antfu in https://github.com/antfu/shikiji/issues/115 (32f8a)
This release migrated TwoSlash integrations from @typescript/twoslash
into the successor twoslash
with quite many improvements, including more prosperous rendering results, more robust interfaces, and even optional Vue SFC support. Along the way, we also take the chance to remove the previously deprecated APIs to reduce the maintenance surface. Please go into each PR/commit to find the detailed changes.
This release also includes a few new themes, inherited from tm-themes
:
The breaking changes mostly happen internally. Ideally, for high-level usages, they shouldn't be affected and can be upgraded seamlessly.
token
to span
to avoid confusion - by @antfu (eb3b8)
unwasm
condition in exports - by @antfu in https://github.com/antfu/shikiji/issues/72 (96300)
highlightLines
option - by @antfu (21e99)
highlightLines
option - by @antfu (fe0e4)
twoslash
package for better performance and composablity - by @antfu in https://github.com/antfu/shikiji/issues/91 (fc67e)
nodeCompletions
to nodeCompletion
- by @antfu (b7637)
Twoslash
- by @antfu (f740b)
unwasm
condition for core - by @antfu in https://github.com/antfu/shikiji/issues/97 (71249)
cache
option for twoslash transformer - by @antfu (d5773)
transformerMetaHighlight
transformer - by @antfu (aa81a)
cache
option for twoslash transformer - by @antfu (d5773)
No significant changes
unwasm
condition for core - by @antfu in https://github.com/antfu/shikiji/issues/97 (71249)
Twoslash
- by @antfu (f740b)