@readme/markdown 6.66.0-beta.6 → 6.66.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/components/Code/index.jsx +3 -3
- package/components/CodeTabs/index.jsx +3 -28
- package/components/index.js +0 -1
- package/dist/main.js +645 -2864
- package/dist/main.node.js +331 -406
- package/package.json +3 -10
- package/components/Div.jsx +0 -30
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": "6.66.0
|
|
5
|
+
"version": "6.66.0",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"browser": "dist/main.js",
|
|
8
8
|
"files": [
|
|
@@ -52,19 +52,17 @@
|
|
|
52
52
|
"remark-slug": "^6.0.0",
|
|
53
53
|
"remark-stringify": "^8.0.0",
|
|
54
54
|
"trim": "^1.0.1",
|
|
55
|
-
"unified": "9.2.
|
|
55
|
+
"unified": "^9.2.2",
|
|
56
56
|
"unist-util-flatmap": "^1.0.0",
|
|
57
57
|
"unist-util-map": "^3.1.2",
|
|
58
58
|
"unist-util-select": "^4.0.0",
|
|
59
59
|
"unist-util-visit": "^4.1.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@mdx-js/runtime": "^1.6.22",
|
|
63
62
|
"@readme/variable": "^15.1.3",
|
|
64
63
|
"@tippyjs/react": "^4.1.0",
|
|
65
64
|
"react": "^16.14.0",
|
|
66
|
-
"react-dom": "^16.14.0"
|
|
67
|
-
"remark-mdx": "^1.6.22"
|
|
65
|
+
"react-dom": "^16.14.0"
|
|
68
66
|
},
|
|
69
67
|
"devDependencies": {
|
|
70
68
|
"@babel/core": "^7.19.3",
|
|
@@ -85,11 +83,8 @@
|
|
|
85
83
|
"@semantic-release/git": "^10.0.1",
|
|
86
84
|
"@testing-library/jest-dom": "^5.16.5",
|
|
87
85
|
"@testing-library/react": "^12.1.2",
|
|
88
|
-
"@tippyjs/react": "^4.2.6",
|
|
89
|
-
"assert": "^2.0.0",
|
|
90
86
|
"babel-jest": "^29.2.1",
|
|
91
87
|
"babel-loader": "^8.2.5",
|
|
92
|
-
"browserify-fs": "^1.0.0",
|
|
93
88
|
"codemirror": "^5.54.0",
|
|
94
89
|
"core-js": "^3.25.5",
|
|
95
90
|
"css-loader": "^6.7.1",
|
|
@@ -110,11 +105,9 @@
|
|
|
110
105
|
"regenerator-runtime": "^0.13.10",
|
|
111
106
|
"sass-loader": "^13.1.0",
|
|
112
107
|
"semantic-release": "^19.0.5",
|
|
113
|
-
"stream-browserify": "^3.0.0",
|
|
114
108
|
"string.prototype.trimend": "^1.0.5",
|
|
115
109
|
"stylelint": "^14.16.1",
|
|
116
110
|
"terser-webpack-plugin": "^5.3.6",
|
|
117
|
-
"util": "^0.12.5",
|
|
118
111
|
"webpack": "^5.74.0",
|
|
119
112
|
"webpack-cli": "^4.10.0",
|
|
120
113
|
"webpack-dev-server": "^4.11.1",
|
package/components/Div.jsx
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const PropTypes = require('prop-types');
|
|
2
|
-
const React = require('react');
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
* To get around hast/html sanitation, we pass custom components through using
|
|
6
|
-
* className's. Then this Div component, can render the associated component
|
|
7
|
-
* instead. This used to be done with a custom `React.createElement`, but for
|
|
8
|
-
* mdx@v1.5, I don't see a way to customize that.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
const Div = ({ components, ...props }) => {
|
|
12
|
-
if (Object.keys(components).includes(props.className)) {
|
|
13
|
-
const Component = components[props.className];
|
|
14
|
-
return <Component {...props} />;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
18
|
-
return <div {...props} />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
Div.propTypes = {
|
|
22
|
-
children: PropTypes.oneOf(PropTypes.arrayOf(PropTypes.any), PropTypes.object),
|
|
23
|
-
className: PropTypes.string,
|
|
24
|
-
components: PropTypes.object,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
module.exports =
|
|
28
|
-
(components, { theme }) =>
|
|
29
|
-
props =>
|
|
30
|
-
<Div components={components} theme={theme} {...props} />;
|