v4.0.0
- Drop Node v18 support, remove deprecated APIs - by @antfu in https://github.com/shikijs/shiki/issues/1249 (cdca9)
- A leaner
@shikijs/primitivepackage - by @antfu in https://github.com/shikijs/shiki/issues/1251 (05a77) - New
@shikijs/markdown-exitpackage - by @antfu (d1257)
v3.23.0
- Update grammar and themes - by @antfu (9b4ca)
- cli:
- Add stdin support and list commands - by @Divyapahuja31 and DIVYA PAHUJA in https://github.com/shikijs/shiki/issues/1241 (213f1)
- transformers:
- Add 'leading' position to transformerRenderWhitespace - by @Divyapahuja31 and DIVYA PAHUJA in https://github.com/shikijs/shiki/issues/1236 (49cbb)
- Add support for [!code info] notation - by @Divyapahuja31 and DIVYA PAHUJA in https://github.com/shikijs/shiki/issues/1237 (cd2a6)
- Add
declaremodifier to top level declarations in.d.ts- by @KazariEX in https://github.com/shikijs/shiki/issues/1242 (142d5) - cli: Normalize language/extension casing for CLI inputs - by @Nandann018-ux and @antfu in https://github.com/shikijs/shiki/issues/1245 (4bea1)
v3.21.0
- Update grammar - by @antfu (6d109)
- core: Preserve HAST data and properties in codeToHast - by @AmanCrafts in https://github.com/shikijs/shiki/issues/1204 (747ea)
- vitepress-twoslash: Fix scroll blocking on mobile viewports - by @dahlia in https://github.com/shikijs/shiki/issues/1235 (8e931)
v3.20.0
- cli: Add --format option for html output - by @Divyapahuja31 in https://github.com/shikijs/shiki/issues/1211 (28dd0)
- rehype: Handle promise rejections in lazy language loading - by @ambujvashistha in https://github.com/shikijs/shiki/issues/1221 (99654)
- vitepress-twoslash: Fix popper positions being recomputed too early within vitepress code groups - by @Dschungelabenteuer, charles.gruenais and @antfu in https://github.com/shikijs/shiki/issues/1116 (19ea5)
- core: Eliminate redundant tokenization call in tokenizeWithTheme - by @ShivanshBhargava and @NssGourav in https://github.com/shikijs/shiki/issues/1216 (c78b1)
v3.19.0
- Support
rootStyle: falseoption - by @khushthecoder and @antfu in https://github.com/shikijs/shiki/issues/1184 (baf9a) - transformers:
- Add
classActiveCodeoption to notation transformers - by @GreenHacker420 in https://github.com/shikijs/shiki/issues/1171 (a6a44) - Add transformerRemoveComments - by @Bitshifter-9, Copilot, @crazylogic03 and @antfu in https://github.com/shikijs/shiki/issues/1144 (f2ee3)
- Add
- twoslash:
- Add context parameter to filter option - by @siddu-09 in https://github.com/shikijs/shiki/issues/1173 (ac7f5)
- Add typesVersions for legacy resolution support - by @khushthecoder in https://github.com/shikijs/shiki/issues/1179 (100b7)
- core: Check embeddedLanguages in registry dependency check - by @vamsi2246 in https://github.com/shikijs/shiki/issues/1178 (6ad16)
- monaco: Correctly handle sparse color map updates - by @wcr-karan in https://github.com/shikijs/shiki/issues/1169 (38c7f)
v3.18.0
- transformers: Support
zeroIndexedoption totransformerMetaHighlight- by @manak-sharma20 in https://github.com/shikijs/shiki/issues/1149 (c39ff)
- core:
- Correct offset calculation in mergeWhitespaceTokens - by @Karthikeya1500 in https://github.com/shikijs/shiki/issues/1162 (15e73)
- Allow
langAliasto special languages, close #1164 - by @antfu in https://github.com/shikijs/shiki/issues/1164 (45ab1)
v3.17.1
- core: Enhance string utils with robust edge case handling - by @shekhar-narayan-mishra in https://github.com/shikijs/shiki/issues/1154 (a2b68)
- core: Correctly parse 4-digit hex colors in dimColor - by @shalini-saloni in https://github.com/shikijs/shiki/issues/1151 (fcdd3)
- monaco: Ensure correct color map update when switching themes - by @shivank-1011 in https://github.com/shikijs/shiki/issues/1155 (d2e94)
v3.17.0
- cli: Support passing remote file url - by @o-az in https://github.com/shikijs/shiki/issues/1139 (fb05a)
- core: Support embeddedLanguages alias for backwards compatibility - by @Ipshita29 in https://github.com/shikijs/shiki/issues/1044 and https://github.com/shikijs/shiki/issues/1145 (3a367)
- monaco: Normalize theme tokenScopes and tighten monaco type import - by @Simon-He95 in https://github.com/shikijs/shiki/issues/1140 (dc792)
- monaco: Preserve Markdown font styles - by @prempyla and @antfu in https://github.com/shikijs/shiki/issues/1107 (e4dec)
- shiki: Rename
createdBundledHighlightertocreateBundledHighlighter- by @tushar73-jet, Tushar and @antfu in https://github.com/shikijs/shiki/issues/1135 (e6d21) - transformers: Handle multi-token comments in rose-pine theme - by @ish1416 and @antfu in https://github.com/shikijs/shiki/issues/1118 (3e1bd)
- twoslash: Fix typo in
twoslash-query-persisted, close #1130, close #981 - by @antfu in https://github.com/shikijs/shiki/issues/1130 and https://github.com/shikijs/shiki/issues/981 (55a17) - types: Add 'plain' to PlainTextLanguage type - by @kevinkucharczyk in https://github.com/shikijs/shiki/issues/1133 (156c5)
v3.16.0
- Update grammars - by @antfu (02dab)
- Enable decorations for structure: inline - by @Aashish-Jha-11 and Aashish_Jha_1107 in https://github.com/shikijs/shiki/issues/1103 (8806b)
- Resolve vitest alias for wasm-inlined - by @sahilsharda (2d7b3)
- transformers: Support comment-prefixed [code . highlight] markers in v3 notation matcher - by @Hariksh in https://github.com/shikijs/shiki/issues/1102 (5068b)