@markdy/astro 0.7.28 → 0.8.0
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 +14 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -36,14 +36,16 @@ Astro integration provides an island wrapper for lazy client-side hydration.
|
|
|
36
36
|
import { Markdy } from "@markdy/astro";
|
|
37
37
|
|
|
38
38
|
const code = `
|
|
39
|
-
scene width=800 height=400
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
scene "Request" theme=midnight width=800 height=400
|
|
40
|
+
browser Web
|
|
41
|
+
service API
|
|
42
|
+
beat main:
|
|
43
|
+
show $nodes
|
|
44
|
+
Web -> API "GET /users"
|
|
43
45
|
`;
|
|
44
46
|
---
|
|
45
47
|
|
|
46
|
-
<Markdy code={code} width={800} height={400} bg="#
|
|
48
|
+
<Markdy code={code} width={800} height={400} bg="#07111f" autoplay />
|
|
47
49
|
```
|
|
48
50
|
|
|
49
51
|
### In MDX
|
|
@@ -52,12 +54,15 @@ const code = `
|
|
|
52
54
|
import { Markdy } from "@markdy/astro";
|
|
53
55
|
|
|
54
56
|
export const code = `
|
|
55
|
-
scene width=600 height=300
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
scene "Request" theme=midnight width=600 height=300
|
|
58
|
+
browser Web
|
|
59
|
+
service API
|
|
60
|
+
beat main:
|
|
61
|
+
show $nodes
|
|
62
|
+
Web -> API "GET /users"
|
|
58
63
|
`;
|
|
59
64
|
|
|
60
|
-
<Markdy code={code} width={600} height={300} autoplay />
|
|
65
|
+
<Markdy code={code} width={600} height={300} bg="#07111f" autoplay />
|
|
61
66
|
```
|
|
62
67
|
|
|
63
68
|
## Props
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markdy/astro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Astro island component for MarkdyScript animations.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@markdy/renderer-dom": "0.
|
|
40
|
+
"@markdy/renderer-dom": "0.8.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"astro": ">=4.0.0"
|