@readme/markdown 11.15.0 → 12.0.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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts text content from a single AST node recursively.
|
|
3
|
+
* Works with both MDAST and HAST-like node structures.
|
|
4
|
+
*
|
|
5
|
+
* Placed this outside of the utils.ts file to avoid circular dependencies.
|
|
6
|
+
*
|
|
7
|
+
* @param node - The node to extract text from (can be MDAST Node or HAST-like structure)
|
|
8
|
+
* @returns The concatenated text content
|
|
9
|
+
*/
|
|
10
|
+
export declare const extractText: (node: {
|
|
11
|
+
children?: unknown[];
|
|
12
|
+
type?: string;
|
|
13
|
+
value?: unknown;
|
|
14
|
+
alt?: unknown;
|
|
15
|
+
}) => string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "12.0.1",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"path": "dist/main.node.js",
|
|
159
|
-
"maxSize": "
|
|
159
|
+
"maxSize": "790KB"
|
|
160
160
|
}
|
|
161
161
|
]
|
|
162
162
|
},
|