comark-solid 0.2.0-next.0 → 0.2.0-next.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/index.js +3 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { className, createComponent, dynamic, effect, insert, mergeProps, template } from "@solidjs/web";
|
|
1
|
+
import { className, createComponent, dynamic, effect, insert, mergeProps, readShallow, template } from "@solidjs/web";
|
|
2
2
|
import { parseMarkdown } from "comark";
|
|
3
3
|
import { isMarkdownDocument, resolveAttributes } from "comark/utils";
|
|
4
4
|
import { Loading, createMemo, merge } from "solid-js";
|
|
@@ -174,7 +174,7 @@ const MarkdownDocument = (_props) => {
|
|
|
174
174
|
const wrapperClass = createMemo(() => ["comark-content", props.class].map((cls) => cls?.trim()).filter(Boolean).join(" "));
|
|
175
175
|
var _el$ = _tmpl$();
|
|
176
176
|
insert(_el$, renderedNodes);
|
|
177
|
-
effect(() => wrapperClass(), (_v$, _$p) => {
|
|
177
|
+
effect(() => readShallow(wrapperClass()), (_v$, _$p) => {
|
|
178
178
|
className(_el$, _v$, _$p);
|
|
179
179
|
});
|
|
180
180
|
return _el$;
|
|
@@ -230,7 +230,7 @@ const Markdown = (_props) => {
|
|
|
230
230
|
get data() {
|
|
231
231
|
return props.data;
|
|
232
232
|
},
|
|
233
|
-
get
|
|
233
|
+
get "class"() {
|
|
234
234
|
return props.class;
|
|
235
235
|
}
|
|
236
236
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comark-solid",
|
|
3
|
-
"version": "0.2.0-next.
|
|
3
|
+
"version": "0.2.0-next.1",
|
|
4
4
|
"description": "Solid renderer for Comark.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"comark",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@solidjs/testing-library": "^1.0.0-beta.3",
|
|
39
|
-
"@solidjs/vite-plugin": "^3.0.0-next.
|
|
40
|
-
"@solidjs/web": "2.0.0-rc.
|
|
39
|
+
"@solidjs/vite-plugin": "^3.0.0-next.47",
|
|
40
|
+
"@solidjs/web": "2.0.0-rc.13",
|
|
41
41
|
"@testing-library/jest-dom": "^7.0.1",
|
|
42
42
|
"bumpp": "^11.1.0",
|
|
43
43
|
"comark": "^0.6.2",
|
|
44
|
-
"eslint-plugin-solid": "~0.18.
|
|
44
|
+
"eslint-plugin-solid": "~0.18.1",
|
|
45
45
|
"jsdom": "^30.0.1",
|
|
46
|
-
"solid-js": "
|
|
46
|
+
"solid-js": "2.0.0-rc.13",
|
|
47
47
|
"typescript": "^7.0.2",
|
|
48
48
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
49
49
|
"vite-plus": "0.3.0"
|