@humanspeak/svelte-markdown 0.8.11 → 0.8.12
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,6 +4,6 @@ type $$ComponentProps = {
|
|
|
4
4
|
tag: string;
|
|
5
5
|
attributes?: Record<string, string>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
8
|
-
type
|
|
9
|
-
export default
|
|
7
|
+
declare const UnsupportedHTML: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
8
|
+
type UnsupportedHTML = ReturnType<typeof UnsupportedHTML>;
|
|
9
|
+
export default UnsupportedHTML;
|
|
@@ -38,6 +38,7 @@ export const isHtmlOpenTag = (raw) => {
|
|
|
38
38
|
return null;
|
|
39
39
|
// If we found a tag, extract its name and check if it's an opening tag
|
|
40
40
|
const match = raw.match(HTML_TAG_PATTERN);
|
|
41
|
+
// c8 ignore next
|
|
41
42
|
if (!match)
|
|
42
43
|
return null;
|
|
43
44
|
return { tag: match[1], isOpening: !raw.startsWith('</') };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humanspeak/svelte-markdown",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.12",
|
|
4
4
|
"description": "A powerful, customizable markdown renderer for Svelte with TypeScript support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte",
|
|
@@ -57,41 +57,42 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"github-slugger": "^2.0.0",
|
|
59
59
|
"htmlparser2": "^10.0.0",
|
|
60
|
-
"marked": "^16.
|
|
60
|
+
"marked": "^16.3.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@eslint/compat": "^1.
|
|
64
|
-
"@eslint/js": "^9.
|
|
65
|
-
"@playwright/test": "^1.55.
|
|
63
|
+
"@eslint/compat": "^1.4.0",
|
|
64
|
+
"@eslint/js": "^9.36.0",
|
|
65
|
+
"@playwright/test": "^1.55.1",
|
|
66
66
|
"@sveltejs/adapter-auto": "^6.1.0",
|
|
67
|
-
"@sveltejs/kit": "^2.
|
|
68
|
-
"@sveltejs/package": "^2.5.
|
|
69
|
-
"@sveltejs/vite-plugin-svelte": "^6.1
|
|
67
|
+
"@sveltejs/kit": "^2.43.5",
|
|
68
|
+
"@sveltejs/package": "^2.5.4",
|
|
69
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
70
70
|
"@testing-library/jest-dom": "^6.8.0",
|
|
71
71
|
"@testing-library/svelte": "^5.2.8",
|
|
72
72
|
"@testing-library/user-event": "^14.6.1",
|
|
73
|
-
"@types/node": "^24.
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
75
|
-
"@typescript-eslint/parser": "^8.
|
|
73
|
+
"@types/node": "^24.5.2",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
75
|
+
"@typescript-eslint/parser": "^8.44.1",
|
|
76
76
|
"@vitest/coverage-v8": "^3.2.4",
|
|
77
|
-
"
|
|
77
|
+
"concurrently": "^9.2.1",
|
|
78
|
+
"eslint": "^9.36.0",
|
|
78
79
|
"eslint-config-prettier": "^10.1.8",
|
|
79
80
|
"eslint-plugin-import": "^2.32.0",
|
|
80
|
-
"eslint-plugin-svelte": "^3.
|
|
81
|
+
"eslint-plugin-svelte": "^3.12.4",
|
|
81
82
|
"eslint-plugin-unused-imports": "^4.2.0",
|
|
82
|
-
"globals": "^16.
|
|
83
|
+
"globals": "^16.4.0",
|
|
83
84
|
"husky": "^9.1.7",
|
|
84
|
-
"jsdom": "^
|
|
85
|
+
"jsdom": "^27.0.0",
|
|
85
86
|
"prettier": "^3.6.2",
|
|
86
|
-
"prettier-plugin-organize-imports": "^4.
|
|
87
|
+
"prettier-plugin-organize-imports": "^4.3.0",
|
|
87
88
|
"prettier-plugin-svelte": "^3.4.0",
|
|
88
89
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
89
|
-
"publint": "^0.3.
|
|
90
|
-
"svelte": "^5.
|
|
91
|
-
"svelte-check": "^4.3.
|
|
90
|
+
"publint": "^0.3.13",
|
|
91
|
+
"svelte": "^5.39.6",
|
|
92
|
+
"svelte-check": "^4.3.2",
|
|
92
93
|
"typescript": "^5.9.2",
|
|
93
|
-
"typescript-eslint": "^8.
|
|
94
|
-
"vite": "^7.1.
|
|
94
|
+
"typescript-eslint": "^8.44.1",
|
|
95
|
+
"vite": "^7.1.7",
|
|
95
96
|
"vitest": "^3.2.4"
|
|
96
97
|
},
|
|
97
98
|
"peerDependencies": {
|
|
@@ -112,6 +113,8 @@
|
|
|
112
113
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
113
114
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
114
115
|
"dev": "vite dev",
|
|
116
|
+
"dev:all": "concurrently -k -n pkg,docs -c green,cyan \"pnpm -w -r --filter @humanspeak/svelte-motion run dev:pkg\" \"pnpm --filter docs run dev\"",
|
|
117
|
+
"dev:pkg": "svelte-kit sync && svelte-package --watch",
|
|
115
118
|
"format": "prettier --write .",
|
|
116
119
|
"lint": "prettier --check . && eslint .",
|
|
117
120
|
"lint:fix": "npm run format && eslint . --fix",
|