@humanspeak/svelte-markdown 0.8.0 โ 0.8.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 +32 -1
- package/dist/index.d.ts +2 -1
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -25,6 +25,33 @@ A powerful, customizable markdown renderer for Svelte with TypeScript support. B
|
|
|
25
25
|
- ๐งช Comprehensive test coverage (vitest and playwright)
|
|
26
26
|
- ๐ Svelte 5 runes compatibility
|
|
27
27
|
- ๐ก๏ธ XSS protection and sanitization
|
|
28
|
+
- ๐จ Custom Marked extensions support (e.g., GitHub-style alerts)
|
|
29
|
+
- ๐ Improved attribute handling and component isolation
|
|
30
|
+
- ๐ฆ Enhanced token cleanup and nested content support
|
|
31
|
+
|
|
32
|
+
## Recent Updates
|
|
33
|
+
|
|
34
|
+
### New Features
|
|
35
|
+
|
|
36
|
+
- Improved HTML attribute isolation for nested components
|
|
37
|
+
- Enhanced token cleanup for better nested content handling
|
|
38
|
+
- Added proper attribute inheritance control
|
|
39
|
+
- Implemented strict debugging checks in CI/CD pipeline
|
|
40
|
+
|
|
41
|
+
### Testing Improvements
|
|
42
|
+
|
|
43
|
+
- Enhanced Playwright E2E test coverage
|
|
44
|
+
- Added comprehensive tests for custom extensions
|
|
45
|
+
- Improved test reliability with proper component mounting checks
|
|
46
|
+
- Added specific test cases for nested component scenarios
|
|
47
|
+
|
|
48
|
+
### CI/CD Enhancements
|
|
49
|
+
|
|
50
|
+
- Added automated debugging statement detection
|
|
51
|
+
- Improved release workflow with GPG signing
|
|
52
|
+
- Enhanced PR validation and automated version bumping
|
|
53
|
+
- Added manual workflow triggers for better release control
|
|
54
|
+
- Implemented monthly cache cleanup
|
|
28
55
|
|
|
29
56
|
## Installation
|
|
30
57
|
|
|
@@ -116,7 +143,11 @@ Here's a complete example of a custom renderer with TypeScript support:
|
|
|
116
143
|
</script>
|
|
117
144
|
|
|
118
145
|
<a {href} {title} class="custom-link">
|
|
119
|
-
{
|
|
146
|
+
{#if children}
|
|
147
|
+
{@render children?.()}
|
|
148
|
+
{:else}
|
|
149
|
+
{text}
|
|
150
|
+
{/if}
|
|
120
151
|
</a>
|
|
121
152
|
```
|
|
122
153
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { HtmlRenderers } from './renderers/html/index.js';
|
|
1
2
|
import type { RendererComponent, Renderers, Token, TokensList } from './utils/markdown-parser.js';
|
|
2
3
|
import SvelteMarkdown from './SvelteMarkdown.svelte';
|
|
3
4
|
import type { SvelteMarkdownOptions, SvelteMarkdownProps } from './types.js';
|
|
4
5
|
export default SvelteMarkdown;
|
|
5
|
-
export type { RendererComponent, Renderers, SvelteMarkdownOptions, SvelteMarkdownProps, Token, TokensList };
|
|
6
|
+
export type { HtmlRenderers, RendererComponent, Renderers, SvelteMarkdownOptions, SvelteMarkdownProps, Token, TokensList };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humanspeak/svelte-markdown",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "A powerful, customizable markdown renderer for Svelte with TypeScript support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte",
|
|
@@ -72,40 +72,40 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"github-slugger": "^2.0.0",
|
|
74
74
|
"htmlparser2": "^10.0.0",
|
|
75
|
-
"marked": "^15.0.
|
|
75
|
+
"marked": "^15.0.8"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@eslint/compat": "^1.2.8",
|
|
79
79
|
"@eslint/js": "^9.24.0",
|
|
80
|
-
"@playwright/test": "^1.
|
|
80
|
+
"@playwright/test": "^1.52.0",
|
|
81
81
|
"@sveltejs/adapter-auto": "^6.0.0",
|
|
82
|
-
"@sveltejs/kit": "^2.20.
|
|
83
|
-
"@sveltejs/package": "^2.3.
|
|
82
|
+
"@sveltejs/kit": "^2.20.7",
|
|
83
|
+
"@sveltejs/package": "^2.3.11",
|
|
84
84
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
85
85
|
"@testing-library/jest-dom": "^6.6.3",
|
|
86
86
|
"@testing-library/svelte": "^5.2.7",
|
|
87
87
|
"@testing-library/user-event": "^14.6.1",
|
|
88
|
-
"@types/node": "^22.14.
|
|
89
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
90
|
-
"@typescript-eslint/parser": "^8.
|
|
88
|
+
"@types/node": "^22.14.1",
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "^8.30.1",
|
|
90
|
+
"@typescript-eslint/parser": "^8.30.1",
|
|
91
91
|
"@vitest/coverage-v8": "^3.1.1",
|
|
92
92
|
"eslint": "^9.24.0",
|
|
93
|
-
"eslint-config-prettier": "^10.1.
|
|
93
|
+
"eslint-config-prettier": "^10.1.2",
|
|
94
94
|
"eslint-plugin-import": "^2.31.0",
|
|
95
95
|
"eslint-plugin-svelte": "^3.5.1",
|
|
96
96
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
97
97
|
"globals": "^16.0.0",
|
|
98
|
-
"jsdom": "^26.
|
|
98
|
+
"jsdom": "^26.1.0",
|
|
99
99
|
"prettier": "^3.5.3",
|
|
100
100
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
101
101
|
"prettier-plugin-svelte": "^3.3.3",
|
|
102
102
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
103
|
-
"publint": "^0.3.
|
|
104
|
-
"svelte": "^5.
|
|
105
|
-
"svelte-check": "^4.1.
|
|
103
|
+
"publint": "^0.3.12",
|
|
104
|
+
"svelte": "^5.28.0",
|
|
105
|
+
"svelte-check": "^4.1.6",
|
|
106
106
|
"typescript": "^5.8.3",
|
|
107
|
-
"typescript-eslint": "^8.
|
|
108
|
-
"vite": "^6.2
|
|
107
|
+
"typescript-eslint": "^8.30.1",
|
|
108
|
+
"vite": "^6.3.2",
|
|
109
109
|
"vitest": "^3.1.1"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|