v4.0.2
- Support ANSI language with multiple themes - by @dan-lee in https://github.com/shikijs/shiki/issues/1259 (2a232)
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)