@readme/markdown 6.75.0-beta.2 → 6.75.0-beta.22
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/Callout/index.tsx +33 -0
- package/components/Code/index.jsx +17 -18
- package/components/TableOfContents/index.jsx +4 -4
- package/dist/main.js +59602 -2
- package/dist/main.node.js +61117 -2
- package/package.json +18 -13
- package/components/Callout/index.jsx +0 -42
- package/dist/main.js.LICENSE.txt +0 -17
- package/dist/main.node.js.LICENSE.txt +0 -50
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.75.0-beta.
|
|
5
|
+
"version": "6.75.0-beta.22",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|
|
@@ -16,16 +16,17 @@
|
|
|
16
16
|
"lint": "eslint . --ext .jsx --ext .js --ext .ts --ext .tsx",
|
|
17
17
|
"release": "npx semantic-release",
|
|
18
18
|
"release.dry": "npx semantic-release --dry-run",
|
|
19
|
-
"
|
|
20
|
-
"test
|
|
19
|
+
"start": "webpack serve --open --mode development --config ./webpack.dev.js",
|
|
20
|
+
"test": "vitest",
|
|
21
|
+
"test.browser": "jest",
|
|
21
22
|
"watch": "webpack --watch --progress --mode development"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
25
|
"@mdx-js/mdx": "^3.0.0",
|
|
25
|
-
"@mdx-js/react": "^3.0.0",
|
|
26
26
|
"@readme/emojis": "^5.0.0",
|
|
27
|
-
"@readme/syntax-highlighter": "^12.
|
|
27
|
+
"@readme/syntax-highlighter": "^12.1.5",
|
|
28
28
|
"copy-to-clipboard": "^3.3.2",
|
|
29
|
+
"core-js": "^3.36.1",
|
|
29
30
|
"debug": "^4.3.4",
|
|
30
31
|
"emoji-regex": "^10.2.1",
|
|
31
32
|
"hast-util-sanitize": "^4.0.0",
|
|
@@ -36,15 +37,16 @@
|
|
|
36
37
|
"process": "^0.11.10",
|
|
37
38
|
"prop-types": "^15.8.1",
|
|
38
39
|
"rehype-sanitize": "^4.0.0",
|
|
39
|
-
"remark": "^
|
|
40
|
+
"remark": "^15.0.1",
|
|
40
41
|
"remark-mdx": "^3.0.0",
|
|
41
|
-
"remark-parse": "^
|
|
42
|
+
"remark-parse": "^11.0.0",
|
|
42
43
|
"trim": "^1.0.1",
|
|
43
44
|
"unified": "^8.4.0",
|
|
44
45
|
"unist-util-flatmap": "^1.0.0",
|
|
45
46
|
"unist-util-visit": "^4.1.1"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
49
|
+
"@mdx-js/react": "^3.0.0",
|
|
48
50
|
"@readme/variable": "^15.1.0",
|
|
49
51
|
"@tippyjs/react": "^4.1.0",
|
|
50
52
|
"react": "^16.14.0",
|
|
@@ -57,6 +59,7 @@
|
|
|
57
59
|
"@babel/plugin-proposal-export-default-from": "^7.23.3",
|
|
58
60
|
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
59
61
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
62
|
+
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
60
63
|
"@babel/plugin-transform-runtime": "^7.21.4",
|
|
61
64
|
"@babel/preset-env": "^7.21.4",
|
|
62
65
|
"@babel/preset-react": "^7.18.6",
|
|
@@ -65,29 +68,30 @@
|
|
|
65
68
|
"@commitlint/config-angular": "^17.4.4",
|
|
66
69
|
"@commitlint/config-conventional": "^17.4.4",
|
|
67
70
|
"@hot-loader/react-dom": "^16.14.0",
|
|
68
|
-
"@readme/eslint-config": "^
|
|
71
|
+
"@readme/eslint-config": "^14.0.0",
|
|
69
72
|
"@semantic-release/changelog": "^6.0.3",
|
|
70
73
|
"@semantic-release/git": "^10.0.1",
|
|
71
|
-
"@testing-library/jest-dom": "^5.
|
|
74
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
72
75
|
"@testing-library/react": "^12.1.2",
|
|
76
|
+
"@types/mdast": "^4.0.3",
|
|
77
|
+
"@types/mdx": "^2.0.12",
|
|
73
78
|
"babel-jest": "^29.5.0",
|
|
74
79
|
"babel-loader": "^9.1.2",
|
|
75
80
|
"browserify-fs": "^1.0.0",
|
|
76
81
|
"codemirror": "^5.54.0",
|
|
77
|
-
"core-js": "^2.6.12",
|
|
78
82
|
"css-loader": "^6.7.3",
|
|
79
83
|
"eslint": "^8.37.0",
|
|
80
84
|
"identity-obj-proxy": "^3.0.0",
|
|
81
85
|
"jest": "^29.5.0",
|
|
82
86
|
"jest-environment-jsdom": "^29.5.0",
|
|
83
87
|
"jest-environment-puppeteer": "^8.0.6",
|
|
84
|
-
"jest-image-snapshot": "^6.
|
|
88
|
+
"jest-image-snapshot": "^6.4.0",
|
|
85
89
|
"jest-puppeteer": "^8.0.6",
|
|
86
90
|
"mini-css-extract-plugin": "^2.7.5",
|
|
87
91
|
"node-sass": "^8.0.0",
|
|
88
|
-
"prettier": "^2.
|
|
92
|
+
"prettier": "^3.2.5",
|
|
89
93
|
"puppeteer": "^19.8.3",
|
|
90
|
-
"react-
|
|
94
|
+
"react-router-dom": "^6.22.3",
|
|
91
95
|
"sass-loader": "^13.2.2",
|
|
92
96
|
"semantic-release": "^22.0.12",
|
|
93
97
|
"stream-browserify": "^3.0.0",
|
|
@@ -95,6 +99,7 @@
|
|
|
95
99
|
"terser-webpack-plugin": "^5.3.7",
|
|
96
100
|
"ts-loader": "^9.4.2",
|
|
97
101
|
"typescript": "^5.0.3",
|
|
102
|
+
"vitest": "^1.4.0",
|
|
98
103
|
"webpack": "^5.56.0",
|
|
99
104
|
"webpack-cli": "^5.0.1",
|
|
100
105
|
"webpack-dev-server": "^4.13.2",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const PropTypes = require('prop-types');
|
|
2
|
-
const React = require('react');
|
|
3
|
-
|
|
4
|
-
const Callout = props => {
|
|
5
|
-
const { attributes, theme, icon } = props;
|
|
6
|
-
const [title, ...content] = !props.title ? [null, props.children] : props.children;
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
10
|
-
<blockquote {...attributes} className={`callout callout_${theme}`} theme={icon}>
|
|
11
|
-
<h3 className={`callout-heading${title ? '' : ' empty'}`}>
|
|
12
|
-
<span className="callout-icon">{icon}</span>
|
|
13
|
-
{title}
|
|
14
|
-
</h3>
|
|
15
|
-
{content}
|
|
16
|
-
</blockquote>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
Callout.propTypes = {
|
|
21
|
-
attributes: PropTypes.shape({}),
|
|
22
|
-
calloutStyle: PropTypes.string,
|
|
23
|
-
children: PropTypes.arrayOf(PropTypes.any).isRequired,
|
|
24
|
-
icon: PropTypes.string,
|
|
25
|
-
node: PropTypes.shape(),
|
|
26
|
-
theme: PropTypes.string,
|
|
27
|
-
title: PropTypes.string,
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
Callout.defaultProps = {
|
|
31
|
-
attributes: null,
|
|
32
|
-
calloutStyle: 'info',
|
|
33
|
-
node: null,
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
Callout.sanitize = sanitizeSchema => {
|
|
37
|
-
sanitizeSchema.attributes['rdme-callout'] = ['icon', 'theme', 'title'];
|
|
38
|
-
|
|
39
|
-
return sanitizeSchema;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
module.exports = Callout;
|
package/dist/main.js.LICENSE.txt
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Determine if an object is a Buffer
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*! For license information please see index.js.LICENSE.txt */
|
|
9
|
-
|
|
10
|
-
/** @license React v16.14.0
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*!
|
|
8
|
-
* Determine if an object is a Buffer
|
|
9
|
-
*
|
|
10
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
11
|
-
* @license MIT
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/*! For license information please see index.js.LICENSE.txt */
|
|
15
|
-
|
|
16
|
-
/** @license React v0.19.1
|
|
17
|
-
* scheduler.production.min.js
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the MIT license found in the
|
|
22
|
-
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/** @license React v16.14.0
|
|
26
|
-
* react-dom.production.min.js
|
|
27
|
-
*
|
|
28
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the MIT license found in the
|
|
31
|
-
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/** @license React v16.14.0
|
|
35
|
-
* react-jsx-runtime.production.min.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
/** @license React v16.14.0
|
|
44
|
-
* react.production.min.js
|
|
45
|
-
*
|
|
46
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the MIT license found in the
|
|
49
|
-
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/
|