svelte-highlight 7.8.1 → 7.8.3

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/Highlight.svelte CHANGED
@@ -1,6 +1,4 @@
1
1
  <script>
2
- // @ts-check
3
-
4
2
  /** @type {import("./languages").LanguageType<string>} */
5
3
  export let language;
6
4
 
@@ -1,5 +1,4 @@
1
1
  <script>
2
- // @ts-check
3
2
  import LangTag from "./LangTag.svelte";
4
3
 
5
4
  /** @type {any} */
@@ -1,5 +1,4 @@
1
1
  <script>
2
- // @ts-check
3
2
  import LangTag from "./LangTag.svelte";
4
3
 
5
4
  /** @type {any} */
package/LangTag.svelte CHANGED
@@ -1,6 +1,4 @@
1
1
  <script>
2
- // @ts-check
3
-
4
2
  /** @type {any} */
5
3
  export let code;
6
4
 
@@ -1,6 +1,4 @@
1
1
  <script>
2
- // @ts-check
3
-
4
2
  /** @type {string} */
5
3
  export let highlighted;
6
4
 
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  > Syntax highlighting for Svelte using [highlight.js](https://github.com/highlightjs/highlight.js).
7
7
 
8
- Try it in [StackBlitz](https://stackblitz.com/edit/svelte-highlight?file=src%2Froutes%2Findex.svelte).
8
+ Try it in the [Svelte REPL](https://svelte.dev/playground/535d6bf354da499389140dbfcb12004f) or [StackBlitz](https://stackblitz.com/edit/svelte-highlight?file=src%2Froutes%2Findex.svelte).
9
9
 
10
10
  ## [Documentation](https://svhe.onrender.com)
11
11
 
@@ -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 highlight.js
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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-highlight",
3
- "version": "7.8.1",
3
+ "version": "7.8.3",
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)",