@readme/markdown 6.58.1 → 6.59.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/README.md +2 -3
- package/components/Heading/index.jsx +4 -6
- package/dist/main.js +1939 -324
- package/dist/main.node.js +12380 -10765
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
<img align="right" width="26%" src="https://owlbert.io/images/owlberts-png/Reading.psd.png">
|
|
2
|
-
|
|
3
1
|
@readme/markdown
|
|
4
2
|
===
|
|
3
|
+
<img align="right" width="26%" src="https://owlbertsio-resized.s3.amazonaws.com/Reading.psd.full.png">
|
|
5
4
|
|
|
6
5
|
ReadMe's flavored Markdown parser and MDX rendering engine. <img align=center src=https://github.com/readmeio/markdown/workflows/CI/badge.svg alt="RDMD CI Status">
|
|
7
6
|
|
|
@@ -46,7 +45,7 @@ Each processor method takes an options object which you can use to adjust the ou
|
|
|
46
45
|
- **`copyButtons`** — Automatically insert a button to copy a block of text to the clipboard. Currently used on `<code>` elements.
|
|
47
46
|
- **`correctnewlines`** — Render new line delimeters as `<br>` tags.
|
|
48
47
|
- **`markdownOptions`** — Remark [parser options](https://github.com/remarkjs/remark/tree/main/packages/remark-stringify#processorusestringify-options).
|
|
49
|
-
- **`safeMode`** — Render html blocks as `<pre>` elements. We normally allow all manner of html attributes that could potentially execute JavaScript.
|
|
48
|
+
- **`safeMode`** — Render html blocks as `<pre>` elements. We normally allow all manner of html attributes that could potentially execute JavaScript.
|
|
50
49
|
|
|
51
50
|
## Flavored Syntax
|
|
52
51
|
|
|
@@ -32,22 +32,20 @@ function Heading({ tag, showAnchorIcons, ...props }) {
|
|
|
32
32
|
return React.createElement(tag, attrs, children);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
function CreateHeading(level,
|
|
35
|
+
function CreateHeading(level, { showAnchorIcons }) {
|
|
36
36
|
// eslint-disable-next-line react/display-name
|
|
37
|
-
return props =>
|
|
38
|
-
<Heading {...props} anchors={anchors} level={level} showAnchorIcons={showAnchorIcons} tag={`h${level}`} />
|
|
39
|
-
);
|
|
37
|
+
return props => <Heading {...props} level={level} showAnchorIcons={showAnchorIcons} tag={`h${level}`} />;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
Heading.propTypes = {
|
|
43
41
|
align: PropTypes.oneOf(['left', 'center', 'right', '']),
|
|
44
|
-
anchors: PropTypes.object,
|
|
45
42
|
children: PropTypes.array.isRequired,
|
|
46
43
|
id: PropTypes.string.isRequired,
|
|
47
44
|
level: PropTypes.number,
|
|
48
45
|
showAnchorIcons: PropTypes.bool,
|
|
49
46
|
tag: PropTypes.string.isRequired,
|
|
50
47
|
};
|
|
48
|
+
|
|
51
49
|
Heading.defaultProps = {
|
|
52
50
|
align: '',
|
|
53
51
|
id: '',
|
|
@@ -55,4 +53,4 @@ Heading.defaultProps = {
|
|
|
55
53
|
showAnchorIcons: true,
|
|
56
54
|
};
|
|
57
55
|
|
|
58
|
-
module.exports =
|
|
56
|
+
module.exports = CreateHeading;
|