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)
v3.15.0
- lang-ansi: Fallback for missing theme ANSI colors - by @Chanakyasinde and @antfu in https://github.com/shikijs/shiki/issues/1095 (f36ea)
- transformers: Support
meta.indentfor indent guides - by @L33Z22L11 in https://github.com/shikijs/shiki/issues/1087 (d8f89)
- Allow singleton highlighter recovery after invalid language error - by @Maxiemad in https://github.com/shikijs/shiki/issues/1091 (218c9)
- vitepress-twoslash: Prevent popper show/hide on dragging - by @bluwy in https://github.com/shikijs/shiki/issues/1090 (29522)
v3.14.0
- Update grammars and themes - by @antfu (26372)
- colorized-brackets: Fix default color does not work with colorized-brackets - by @oatmealproblem in https://github.com/shikijs/shiki/issues/1082 (f4d3f)
v3.13.0
- transformers: Render indent guides - by @KazariEX and @antfu in https://github.com/shikijs/shiki/issues/1060 (aecd1)