@humanspeak/svelte-markdown 0.7.0 → 0.7.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 CHANGED
@@ -4,10 +4,14 @@
4
4
  [![Build Status](https://github.com/humanspeak/svelte-markdown/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/humanspeak/svelte-markdown/actions/workflows/npm-publish.yml)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/humanspeak/svelte-markdown/badge.svg?branch=main)](https://coveralls.io/github/humanspeak/svelte-markdown?branch=main)
6
6
  [![License](https://img.shields.io/npm/l/@humanspeak/svelte-markdown.svg)](https://github.com/humanspeak/svelte-markdown/blob/main/LICENSE)
7
+
7
8
  <!-- [![Bundle Size](https://img.shields.io/bundlephobia/minzip/@humanspeak/svelte-markdown)](https://bundlephobia.com/package/@humanspeak/svelte-markdown) -->
9
+
8
10
  [![Downloads](https://img.shields.io/npm/dm/@humanspeak/svelte-markdown.svg)](https://www.npmjs.com/package/@humanspeak/svelte-markdown)
9
11
  [![CodeQL](https://github.com/humanspeak/svelte-markdown/actions/workflows/codeql.yml/badge.svg)](https://github.com/humanspeak/svelte-markdown/actions/workflows/codeql.yml)
12
+
10
13
  <!-- [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md) -->
14
+
11
15
  [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)
12
16
  [![Types](https://img.shields.io/npm/types/@humanspeak/svelte-markdown.svg)](https://www.npmjs.com/package/@humanspeak/svelte-markdown)
13
17
  [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/humanspeak/svelte-markdown/graphs/commit-activity)
@@ -54,7 +54,8 @@
54
54
  }: Props & {
55
55
  [key: string]: unknown
56
56
  } = $props()
57
- let tokens: Token[] | undefined
57
+ // @ts-expect-error - Intentionally not using $state for tokens
58
+ let tokens: Token[] | undefined // eslint-disable-line svelte/valid-compile
58
59
  let previousSource = $state<string | Token[] | undefined>(undefined)
59
60
  let lexer: Lexer
60
61
 
@@ -90,10 +91,12 @@
90
91
  }
91
92
  </script>
92
93
 
93
- <Parser
94
- {tokens}
95
- {...rest}
96
- options={combinedOptions}
97
- slug={(val: string): string => (slugger ? slugger.slug(val) : '')}
98
- renderers={combinedRenderers}
99
- />
94
+ {#key source}
95
+ <Parser
96
+ {tokens}
97
+ {...rest}
98
+ options={combinedOptions}
99
+ slug={(val: string): string => (slugger ? slugger.slug(val) : '')}
100
+ renderers={combinedRenderers}
101
+ />
102
+ {/key}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@humanspeak/svelte-markdown",
3
- "description": "A markdown renderer for Svelte",
4
- "version": "0.7.0",
3
+ "description": "A powerful, customizable markdown renderer for Svelte with TypeScript support",
4
+ "version": "0.7.2",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run package",
@@ -30,6 +30,21 @@
30
30
  "svelte",
31
31
  "markdown"
32
32
  ],
33
+ "keywords": [
34
+ "svelte",
35
+ "markdown",
36
+ "renderer",
37
+ "parser",
38
+ "marked",
39
+ "component",
40
+ "sveltekit",
41
+ "svelte5",
42
+ "md",
43
+ "documentation",
44
+ "html",
45
+ "converter",
46
+ "formatting"
47
+ ],
33
48
  "homepage": "https://markdown.svelte.page",
34
49
  "files": [
35
50
  "dist",
@@ -93,5 +108,12 @@
93
108
  },
94
109
  "volta": {
95
110
  "node": "22.12.0"
111
+ },
112
+ "funding": {
113
+ "type": "github",
114
+ "url": "https://github.com/sponsors/humanspeak"
115
+ },
116
+ "publishConfig": {
117
+ "access": "public"
96
118
  }
97
119
  }