@humanspeak/svelte-markdown 1.4.0 → 1.4.1
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/dist/types.d.ts +23 -0
- package/package.json +11 -11
package/dist/types.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ import type { MarkedOptions, Renderers } from './utils/markdown-parser.js';
|
|
|
23
23
|
import type { HtmlKey } from './utils/rendererKeys.js';
|
|
24
24
|
import type { SanitizeAttributesFn, SanitizeUrlFn } from './utils/sanitize.js';
|
|
25
25
|
export interface ParagraphSnippetProps {
|
|
26
|
+
raw?: string;
|
|
27
|
+
text?: string;
|
|
26
28
|
children?: Snippet;
|
|
27
29
|
}
|
|
28
30
|
export interface HeadingSnippetProps {
|
|
@@ -36,29 +38,41 @@ export interface HeadingSnippetProps {
|
|
|
36
38
|
export interface LinkSnippetProps {
|
|
37
39
|
href?: string;
|
|
38
40
|
title?: string;
|
|
41
|
+
raw?: string;
|
|
42
|
+
text?: string;
|
|
39
43
|
children?: Snippet;
|
|
40
44
|
}
|
|
41
45
|
export interface ImageSnippetProps {
|
|
42
46
|
href?: string;
|
|
43
47
|
title?: string;
|
|
44
48
|
text?: string;
|
|
49
|
+
raw?: string;
|
|
45
50
|
}
|
|
46
51
|
export interface CodeSnippetProps {
|
|
47
52
|
lang: string;
|
|
48
53
|
text: string;
|
|
54
|
+
codeBlockStyle?: 'indented';
|
|
49
55
|
}
|
|
50
56
|
export interface CodespanSnippetProps {
|
|
51
57
|
raw: string;
|
|
58
|
+
text?: string;
|
|
52
59
|
}
|
|
53
60
|
export interface BlockquoteSnippetProps {
|
|
61
|
+
raw?: string;
|
|
62
|
+
text?: string;
|
|
54
63
|
children?: Snippet;
|
|
55
64
|
}
|
|
56
65
|
export interface ListSnippetProps {
|
|
57
66
|
ordered?: boolean;
|
|
58
67
|
start?: number;
|
|
68
|
+
loose?: boolean;
|
|
59
69
|
children?: Snippet;
|
|
60
70
|
}
|
|
61
71
|
export interface ListItemSnippetProps {
|
|
72
|
+
text?: string;
|
|
73
|
+
task?: boolean;
|
|
74
|
+
checked?: boolean;
|
|
75
|
+
loose?: boolean;
|
|
62
76
|
children?: Snippet;
|
|
63
77
|
listItemIndex?: number;
|
|
64
78
|
}
|
|
@@ -80,17 +94,25 @@ export interface TableCellSnippetProps {
|
|
|
80
94
|
children?: Snippet;
|
|
81
95
|
}
|
|
82
96
|
export interface EmSnippetProps {
|
|
97
|
+
raw?: string;
|
|
98
|
+
text?: string;
|
|
83
99
|
children?: Snippet;
|
|
84
100
|
}
|
|
85
101
|
export interface StrongSnippetProps {
|
|
102
|
+
raw?: string;
|
|
103
|
+
text?: string;
|
|
86
104
|
children?: Snippet;
|
|
87
105
|
}
|
|
88
106
|
export interface DelSnippetProps {
|
|
107
|
+
raw?: string;
|
|
108
|
+
text?: string;
|
|
89
109
|
children?: Snippet;
|
|
90
110
|
}
|
|
91
111
|
export type HrSnippetProps = Record<string, never>;
|
|
92
112
|
export type BrSnippetProps = Record<string, never>;
|
|
93
113
|
export interface TextSnippetProps {
|
|
114
|
+
raw?: string;
|
|
115
|
+
text?: string;
|
|
94
116
|
children?: Snippet;
|
|
95
117
|
}
|
|
96
118
|
export interface RawTextSnippetProps {
|
|
@@ -98,6 +120,7 @@ export interface RawTextSnippetProps {
|
|
|
98
120
|
}
|
|
99
121
|
export interface EscapeSnippetProps {
|
|
100
122
|
text: string;
|
|
123
|
+
raw?: string;
|
|
101
124
|
}
|
|
102
125
|
export type SnippetOverrides = {
|
|
103
126
|
paragraph?: Snippet<[ParagraphSnippetProps]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humanspeak/svelte-markdown",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Fast, customizable markdown renderer for Svelte with built-in caching, TypeScript support, and Svelte 5 runes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"marked": "^18.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@eslint/compat": "^2.0.
|
|
76
|
+
"@eslint/compat": "^2.0.5",
|
|
77
77
|
"@eslint/js": "^10.0.1",
|
|
78
|
-
"@playwright/cli": "^0.1.
|
|
78
|
+
"@playwright/cli": "^0.1.6",
|
|
79
79
|
"@playwright/test": "^1.59.1",
|
|
80
80
|
"@sveltejs/adapter-auto": "^7.0.1",
|
|
81
|
-
"@sveltejs/kit": "^2.
|
|
81
|
+
"@sveltejs/kit": "^2.57.1",
|
|
82
82
|
"@sveltejs/package": "^2.5.7",
|
|
83
83
|
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
84
84
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"@testing-library/user-event": "^14.6.1",
|
|
87
87
|
"@types/katex": "^0.16.8",
|
|
88
88
|
"@types/node": "^25.5.2",
|
|
89
|
-
"@typescript-eslint/eslint-plugin": "^8.58.
|
|
90
|
-
"@typescript-eslint/parser": "^8.58.
|
|
91
|
-
"@vitest/coverage-v8": "^4.1.
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "^8.58.1",
|
|
90
|
+
"@typescript-eslint/parser": "^8.58.1",
|
|
91
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
92
92
|
"eslint": "^10.2.0",
|
|
93
93
|
"eslint-config-prettier": "^10.1.8",
|
|
94
94
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
"prettier-plugin-svelte": "^3.5.1",
|
|
107
107
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
108
108
|
"publint": "^0.3.18",
|
|
109
|
-
"svelte": "^5.55.
|
|
109
|
+
"svelte": "^5.55.2",
|
|
110
110
|
"svelte-check": "^4.4.6",
|
|
111
111
|
"typescript": "^6.0.2",
|
|
112
|
-
"typescript-eslint": "^8.58.
|
|
113
|
-
"vite": "^8.0.
|
|
114
|
-
"vitest": "^4.1.
|
|
112
|
+
"typescript-eslint": "^8.58.1",
|
|
113
|
+
"vite": "^8.0.8",
|
|
114
|
+
"vitest": "^4.1.4"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"mermaid": ">=10.0.0",
|