@readme/markdown 6.38.3 → 6.38.5
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/TableOfContents/index.jsx +1 -1
- package/dist/main.js +10 -6
- package/dist/main.node.js +10 -6
- package/package.json +4 -4
|
@@ -7,7 +7,7 @@ function TableOfContents({ children }) {
|
|
|
7
7
|
<ul className="toc-list">
|
|
8
8
|
<li>
|
|
9
9
|
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
|
|
10
|
-
<a className="tocHeader"
|
|
10
|
+
<a className="tocHeader">
|
|
11
11
|
<i className="icon icon-text-align-left"></i>
|
|
12
12
|
Table of Contents
|
|
13
13
|
</a>
|
package/dist/main.js
CHANGED
|
@@ -10127,8 +10127,7 @@ function TableOfContents(_ref) {
|
|
|
10127
10127
|
return /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement("ul", {
|
|
10128
10128
|
className: "toc-list"
|
|
10129
10129
|
}, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
|
|
10130
|
-
className: "tocHeader"
|
|
10131
|
-
href: ""
|
|
10130
|
+
className: "tocHeader"
|
|
10132
10131
|
}, /*#__PURE__*/React.createElement("i", {
|
|
10133
10132
|
className: "icon icon-text-align-left"
|
|
10134
10133
|
}), "Table of Contents")), /*#__PURE__*/React.createElement("li", {
|
|
@@ -28371,7 +28370,7 @@ function tokenizer(eat, value) {
|
|
|
28371
28370
|
*/
|
|
28372
28371
|
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
28373
28372
|
|
|
28374
|
-
var CODE_BLOCK_RGXP = /*#__PURE__*/_wrapRegExp(/(?:^|\n)```[\t ]*((?:(?![\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])[\s\S])+)?(?: *((?:(?!\n)[\s\S])+))
|
|
28373
|
+
var CODE_BLOCK_RGXP = /*#__PURE__*/_wrapRegExp(/(?:^|\n)```[\t ]*((?:(?![\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])[\s\S])+)?(?: *((?:(?!\n)[\s\S])+))?(((?!\n```)[\s\S])*)?\n```/g, {
|
|
28375
28374
|
lang: 1,
|
|
28376
28375
|
meta: 2,
|
|
28377
28376
|
code: 3
|
|
@@ -28855,9 +28854,14 @@ function tokenize(eat, value) {
|
|
|
28855
28854
|
title = _json2.title,
|
|
28856
28855
|
url = _json2.url,
|
|
28857
28856
|
html = _json2.html;
|
|
28858
|
-
|
|
28859
|
-
|
|
28860
|
-
|
|
28857
|
+
|
|
28858
|
+
try {
|
|
28859
|
+
json.provider = new URL(url).hostname.split(/(?:www)?\./).filter(function (i) {
|
|
28860
|
+
return i;
|
|
28861
|
+
}).join('.');
|
|
28862
|
+
} catch (_unused) {
|
|
28863
|
+
json.provider = url;
|
|
28864
|
+
}
|
|
28861
28865
|
|
|
28862
28866
|
var _data = _objectSpread(_objectSpread({}, json), {}, {
|
|
28863
28867
|
url: url,
|
package/dist/main.node.js
CHANGED
|
@@ -10127,8 +10127,7 @@ function TableOfContents(_ref) {
|
|
|
10127
10127
|
return /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement("ul", {
|
|
10128
10128
|
className: "toc-list"
|
|
10129
10129
|
}, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
|
|
10130
|
-
className: "tocHeader"
|
|
10131
|
-
href: ""
|
|
10130
|
+
className: "tocHeader"
|
|
10132
10131
|
}, /*#__PURE__*/React.createElement("i", {
|
|
10133
10132
|
className: "icon icon-text-align-left"
|
|
10134
10133
|
}), "Table of Contents")), /*#__PURE__*/React.createElement("li", {
|
|
@@ -11194,7 +11193,7 @@ function tokenizer(eat, value) {
|
|
|
11194
11193
|
*/
|
|
11195
11194
|
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
11196
11195
|
|
|
11197
|
-
var CODE_BLOCK_RGXP = /*#__PURE__*/_wrapRegExp(/(?:^|\n)```[\t ]*((?:(?![\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])[\s\S])+)?(?: *((?:(?!\n)[\s\S])+))
|
|
11196
|
+
var CODE_BLOCK_RGXP = /*#__PURE__*/_wrapRegExp(/(?:^|\n)```[\t ]*((?:(?![\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])[\s\S])+)?(?: *((?:(?!\n)[\s\S])+))?(((?!\n```)[\s\S])*)?\n```/g, {
|
|
11198
11197
|
lang: 1,
|
|
11199
11198
|
meta: 2,
|
|
11200
11199
|
code: 3
|
|
@@ -11678,9 +11677,14 @@ function tokenize(eat, value) {
|
|
|
11678
11677
|
title = _json2.title,
|
|
11679
11678
|
url = _json2.url,
|
|
11680
11679
|
html = _json2.html;
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11680
|
+
|
|
11681
|
+
try {
|
|
11682
|
+
json.provider = new URL(url).hostname.split(/(?:www)?\./).filter(function (i) {
|
|
11683
|
+
return i;
|
|
11684
|
+
}).join('.');
|
|
11685
|
+
} catch (_unused) {
|
|
11686
|
+
json.provider = url;
|
|
11687
|
+
}
|
|
11684
11688
|
|
|
11685
11689
|
var _data = _objectSpread(_objectSpread({}, json), {}, {
|
|
11686
11690
|
url: url,
|
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.38.
|
|
5
|
+
"version": "6.38.5",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"browser": "dist/main.js",
|
|
8
8
|
"files": [
|
|
@@ -72,17 +72,17 @@
|
|
|
72
72
|
"@commitlint/config-angular": "^15.0.0",
|
|
73
73
|
"@commitlint/config-conventional": "^15.0.0",
|
|
74
74
|
"@hot-loader/react-dom": "^16.14.0",
|
|
75
|
-
"@readme/eslint-config": "^8.
|
|
75
|
+
"@readme/eslint-config": "^8.4.1",
|
|
76
76
|
"@readme/variable": "^13.6.5",
|
|
77
77
|
"@semantic-release/changelog": "^6.0.1",
|
|
78
78
|
"@semantic-release/git": "^10.0.1",
|
|
79
|
+
"@testing-library/jest-dom": "^5.16.2",
|
|
80
|
+
"@testing-library/react": "^12.1.2",
|
|
79
81
|
"babel-jest": "^27.4.0",
|
|
80
82
|
"babel-loader": "^8.2.3",
|
|
81
83
|
"codemirror": "^5.64.0",
|
|
82
84
|
"core-js": "^3.19.2",
|
|
83
85
|
"css-loader": "^6.5.1",
|
|
84
|
-
"enzyme": "^3.11.0",
|
|
85
|
-
"enzyme-adapter-react-16": "^1.15.6",
|
|
86
86
|
"eslint": "^8.3.0",
|
|
87
87
|
"husky": "^7.0.4",
|
|
88
88
|
"identity-obj-proxy": "^3.0.0",
|