svelte-rtf-editor 1.0.0 → 1.0.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.
@@ -493,7 +493,7 @@ export function rtfToHtml(rtfString) {
493
493
  const prev = i > 0 ? trimmedParagraphs[i - 1] : '';
494
494
  const next = i + 1 < trimmedParagraphs.length ? trimmedParagraphs[i + 1] : '';
495
495
  if (!trimmed) {
496
- if (isListLine(prev) || isListLine(next)) {
496
+ if (isListLine(prev) && isListLine(next)) {
497
497
  continue;
498
498
  }
499
499
  const last = rendered[rendered.length - 1];
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "svelte-rtf-editor",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "RTF viewer and rich-text editor components for Svelte 5",
5
5
  "license": "MIT",
6
- "homepage": "https://github.com/jfc76/svelte-rtf-editor#readme",
6
+ "homepage": "https://github.com/jcelano/svelte-rtf-editor#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/jfc76/svelte-rtf-editor.git"
9
+ "url": "git+https://github.com/jcelano/svelte-rtf-editor.git"
10
10
  },
11
- "bugs": "https://github.com/jfc76/svelte-rtf-editor/issues",
11
+ "bugs": "https://github.com/jcelano/svelte-rtf-editor/issues",
12
12
  "scripts": {
13
13
  "dev": "vite dev",
14
14
  "build": "vite build && npm run prepack",
@@ -17,6 +17,8 @@
17
17
  "prepack": "svelte-kit sync && svelte-package && publint",
18
18
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
19
19
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
20
+ "test": "vitest run",
21
+ "test:watch": "vitest",
20
22
  "changeset": "changeset",
21
23
  "version": "changeset version",
22
24
  "release": "npm run prepack && changeset publish"
@@ -51,7 +53,8 @@
51
53
  "svelte": "^5.51.0",
52
54
  "svelte-check": "^4.4.2",
53
55
  "typescript": "^5.9.3",
54
- "vite": "^7.3.1"
56
+ "vite": "^7.3.1",
57
+ "vitest": "^4.0.18"
55
58
  },
56
59
  "keywords": [
57
60
  "svelte",