Skip to content

Commit 9bd4196

Browse files
committed
docs: make install commands more concise
1 parent 63bdb01 commit 9bd4196

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,19 @@ Try it in the [Svelte REPL](https://svelte.dev/repl/e9c59b1d029a49e0b89d296ffc33
1111

1212
## Installation
1313

14-
**Yarn**
15-
1614
```bash
15+
# Yarn
1716
yarn add -D svelte-highlight
18-
```
1917

20-
**NPM**
21-
22-
```bash
18+
# npm
2319
npm i -D svelte-highlight
24-
```
25-
26-
**pnpm**
2720

28-
```bash
21+
# pnpm
2922
pnpm i -D svelte-highlight highlight.js
3023
```
3124

25+
Note that [pnpm](https://github.com/pnpm/pnpm) users must also install `highlight.js` as a development dependency.
26+
3227
## SvelteKit Set-up
3328

3429
To use this library with [SvelteKit](https://github.com/sveltejs/kit) or [vite](https://github.com/sveltejs/vite-plugin-svelte), instruct vite to optimize `highlight.js` and `highlight.js/lib/core`:

0 commit comments

Comments
 (0)