You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/packages/twoslash.md
+18-2
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,26 @@ A Shiki transformer for [Twoslash](https://github.com/twoslashes/twoslash), prov
12
12
13
13
## Install
14
14
15
-
```bash
16
-
npm i -D @shikijs/twoslash
15
+
::: code-group
16
+
17
+
```sh [npm]
18
+
npm install -D @shikijs/twoslash
19
+
```
20
+
21
+
```sh [yarn]
22
+
yarn add -D @shikijs/twoslash
23
+
```
24
+
25
+
```sh [pnpm]
26
+
pnpm add -D @shikijs/twoslash
17
27
```
18
28
29
+
```sh [bun]
30
+
bun add -D @shikijs/twoslash
31
+
```
32
+
33
+
:::
34
+
19
35
This package is **a transformer addon** to Shiki. This means that for every integration that supports passing Shiki transformers, you can use this package.
And then in your [`.vitepress/theme/index.ts`](https://vitepress.dev/guide/custom-theme), install the Vue plugin and import the css with `@shikijs/vitepress-twoslash/styles.css`.
0 commit comments