svelte-highlight 7.8.0 → 7.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ The Changelog is [available on GitHub](https://github.com/metonym/svelte-highlig
|
|
|
18
18
|
npm i svelte-highlight
|
|
19
19
|
|
|
20
20
|
# pnpm
|
|
21
|
-
pnpm i svelte-highlight
|
|
21
|
+
pnpm i svelte-highlight
|
|
22
22
|
|
|
23
23
|
# Bun
|
|
24
24
|
bun i svelte-highlight
|
|
@@ -27,8 +27,6 @@ bun i svelte-highlight
|
|
|
27
27
|
yarn add svelte-highlight
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
Note that [pnpm](https://github.com/pnpm/pnpm) users must also install `highlight.js`.
|
|
31
|
-
|
|
32
30
|
## Basic Usage
|
|
33
31
|
|
|
34
32
|
The `Highlight` component requires two props:
|
|
@@ -511,10 +509,13 @@ In the example below, the `HighlightAuto` component and injected styles are dyna
|
|
|
511
509
|
|
|
512
510
|
## Examples
|
|
513
511
|
|
|
512
|
+
By default, example set-ups use Svelte 5. The exception is `examples/vite@svelte-4`, which uses Svelte 4.
|
|
513
|
+
|
|
514
514
|
- [examples/rollup](examples/rollup)
|
|
515
515
|
- [examples/routify](examples/routify)
|
|
516
516
|
- [examples/sveltekit](examples/sveltekit)
|
|
517
517
|
- [examples/vite](examples/vite)
|
|
518
|
+
- [examples/vite@svelte-4](examples/vite@svelte-4)
|
|
518
519
|
- [examples/webpack](examples/webpack)
|
|
519
520
|
|
|
520
521
|
## [Changelog](CHANGELOG.md)
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-highlight",
|
|
3
|
-
"version": "7.8.
|
|
3
|
+
"version": "7.8.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Svelte component library for highlighting code using highlight.js",
|
|
6
6
|
"author": "Eric Liu (https://github.com/metonym)",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"highlight.js": "11.11.
|
|
9
|
+
"highlight.js": "11.11.1"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|