@markdy/mdx 0.7.19 → 0.7.21
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 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,6 +11,20 @@ MDX integration for MarkdyScript with Lighthouse-safe defaults:
|
|
|
11
11
|
pnpm add @markdy/mdx react react-dom
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## Package position (text)
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
@markdy/core -> @markdy/renderer-dom -> @markdy/mdx
|
|
18
|
+
|
|
19
|
+
MDX integration transforms fenced markdy blocks into lazy player components.
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Output preview
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<img src="https://raw.githubusercontent.com/HoangYell/markdy-com/main/website/public/images/markdy-output-preview.webp" alt="Markdy output preview" width="900" />
|
|
26
|
+
</p>
|
|
27
|
+
|
|
14
28
|
## Usage
|
|
15
29
|
|
|
16
30
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markdy/mdx",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.21",
|
|
4
4
|
"description": "MDX integration plugin and lightweight React player for Markdy.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"unist-util-visit": "^5.0.0",
|
|
43
|
-
"@markdy/renderer-dom": "0.7.
|
|
43
|
+
"@markdy/renderer-dom": "0.7.21"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=18.0.0",
|