@readme/markdown 6.75.0-beta.1 → 6.75.0-beta.10

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/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.1",
5
+ "version": "6.75.0-beta.10",
6
6
  "main": "dist/main.node.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "browser": "dist/main.js",
@@ -36,9 +36,9 @@
36
36
  "process": "^0.11.10",
37
37
  "prop-types": "^15.8.1",
38
38
  "rehype-sanitize": "^4.0.0",
39
- "remark": "^14.0.2",
39
+ "remark": "^15.0.1",
40
40
  "remark-mdx": "^3.0.0",
41
- "remark-parse": "^10.0.2",
41
+ "remark-parse": "^11.0.0",
42
42
  "trim": "^1.0.1",
43
43
  "unified": "^8.4.0",
44
44
  "unist-util-flatmap": "^1.0.0",
@@ -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;
@@ -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
- */