@readme/markdown 6.74.3 → 6.74.4
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/dist/main.js +13 -5
- package/dist/main.node.js +12 -4
- package/package.json +5 -2
package/dist/main.node.js
CHANGED
|
@@ -30146,19 +30146,27 @@ function trimTrailingLines(value) {
|
|
|
30146
30146
|
/***/ 8233:
|
|
30147
30147
|
/***/ ((module, exports) => {
|
|
30148
30148
|
|
|
30149
|
-
|
|
30150
30149
|
exports = module.exports = trim;
|
|
30151
30150
|
|
|
30152
30151
|
function trim(str){
|
|
30153
|
-
return str.
|
|
30152
|
+
if (str.trim) return str.trim();
|
|
30153
|
+
return exports.right(exports.left(str));
|
|
30154
30154
|
}
|
|
30155
30155
|
|
|
30156
30156
|
exports.left = function(str){
|
|
30157
|
-
return str.
|
|
30157
|
+
if (str.trimLeft) return str.trimLeft();
|
|
30158
|
+
|
|
30159
|
+
return str.replace(/^\s\s*/, '');
|
|
30158
30160
|
};
|
|
30159
30161
|
|
|
30160
30162
|
exports.right = function(str){
|
|
30161
|
-
return str.
|
|
30163
|
+
if (str.trimRight) return str.trimRight();
|
|
30164
|
+
|
|
30165
|
+
var whitespace_pattern = /\s/,
|
|
30166
|
+
i = str.length;
|
|
30167
|
+
while (whitespace_pattern.test(str.charAt(--i)));
|
|
30168
|
+
|
|
30169
|
+
return str.slice(0, i + 1);
|
|
30162
30170
|
};
|
|
30163
30171
|
|
|
30164
30172
|
|
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.74.
|
|
5
|
+
"version": "6.74.4",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"browser": "dist/main.js",
|
|
8
8
|
"files": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@readme/emojis": "^5.1.0",
|
|
32
|
-
"@readme/syntax-highlighter": "^12.1.
|
|
32
|
+
"@readme/syntax-highlighter": "^12.1.5",
|
|
33
33
|
"copy-to-clipboard": "^3.3.3",
|
|
34
34
|
"emoji-regex": "^10.3.0",
|
|
35
35
|
"hast-util-sanitize": "^4.0.0",
|
|
@@ -148,5 +148,8 @@
|
|
|
148
148
|
"upper-case"
|
|
149
149
|
]
|
|
150
150
|
}
|
|
151
|
+
},
|
|
152
|
+
"overrides": {
|
|
153
|
+
"trim": "^1"
|
|
151
154
|
}
|
|
152
155
|
}
|