@humanspeak/svelte-markdown 0.8.2 → 0.8.3

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.
Files changed (2) hide show
  1. package/README.md +4 -7
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -136,21 +136,18 @@ Here's a complete example of a custom renderer with TypeScript support:
136
136
  children?: Snippet
137
137
  href?: string
138
138
  title?: string
139
- text?: string
140
139
  }
141
140
 
142
- const { href = '', title = '', text = '', children }: Props = $props()
141
+ const { href = '', title = '', children }: Props = $props()
143
142
  </script>
144
143
 
145
144
  <a {href} {title} class="custom-link">
146
- {#if children}
147
- {@render children?.()}
148
- {:else}
149
- {text}
150
- {/if}
145
+ {@render children?.()}
151
146
  </a>
152
147
  ```
153
148
 
149
+ If you would like to extend other renderers please take a look inside the [renderers folder](https://github.com/humanspeak/svelte-markdown/tree/main/src/lib/renderers) for the default implentation of them. If you would like feature additions please feel free to open an issue!
150
+
154
151
  ## Advanced Features
155
152
 
156
153
  ### Table Support with Mixed Content
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanspeak/svelte-markdown",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "A powerful, customizable markdown renderer for Svelte with TypeScript support",
5
5
  "keywords": [
6
6
  "svelte",
@@ -72,11 +72,11 @@
72
72
  "dependencies": {
73
73
  "github-slugger": "^2.0.0",
74
74
  "htmlparser2": "^10.0.0",
75
- "marked": "^15.0.8"
75
+ "marked": "^15.0.9"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@eslint/compat": "^1.2.8",
79
- "@eslint/js": "^9.24.0",
79
+ "@eslint/js": "^9.25.1",
80
80
  "@playwright/test": "^1.52.0",
81
81
  "@sveltejs/adapter-auto": "^6.0.0",
82
82
  "@sveltejs/kit": "^2.20.7",
@@ -86,10 +86,10 @@
86
86
  "@testing-library/svelte": "^5.2.7",
87
87
  "@testing-library/user-event": "^14.6.1",
88
88
  "@types/node": "^22.14.1",
89
- "@typescript-eslint/eslint-plugin": "^8.30.1",
90
- "@typescript-eslint/parser": "^8.30.1",
91
- "@vitest/coverage-v8": "^3.1.1",
92
- "eslint": "^9.24.0",
89
+ "@typescript-eslint/eslint-plugin": "^8.31.0",
90
+ "@typescript-eslint/parser": "^8.31.0",
91
+ "@vitest/coverage-v8": "^3.1.2",
92
+ "eslint": "^9.25.1",
93
93
  "eslint-config-prettier": "^10.1.2",
94
94
  "eslint-plugin-import": "^2.31.0",
95
95
  "eslint-plugin-svelte": "^3.5.1",
@@ -101,12 +101,12 @@
101
101
  "prettier-plugin-svelte": "^3.3.3",
102
102
  "prettier-plugin-tailwindcss": "^0.6.11",
103
103
  "publint": "^0.3.12",
104
- "svelte": "^5.28.0",
104
+ "svelte": "^5.28.2",
105
105
  "svelte-check": "^4.1.6",
106
106
  "typescript": "^5.8.3",
107
- "typescript-eslint": "^8.30.1",
107
+ "typescript-eslint": "^8.31.0",
108
108
  "vite": "^6.3.2",
109
- "vitest": "^3.1.1"
109
+ "vitest": "^3.1.2"
110
110
  },
111
111
  "peerDependencies": {
112
112
  "svelte": "^5.0.0"