@readme/markdown 6.81.0 → 6.82.1
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 +46 -3
- package/dist/main.node.js +46 -3
- package/package.json +2 -1
package/dist/main.js
CHANGED
|
@@ -8411,18 +8411,50 @@ var _createClass = __webpack_require__(4579);
|
|
|
8411
8411
|
var _classCallCheck = __webpack_require__(7383);
|
|
8412
8412
|
var _defineProperty = __webpack_require__(3693);
|
|
8413
8413
|
var _require = __webpack_require__(5461),
|
|
8414
|
+
gemoji = _require.gemoji,
|
|
8414
8415
|
nameToEmoji = _require.nameToEmoji;
|
|
8415
|
-
var owlmoji = [
|
|
8416
|
+
var owlmoji = [{
|
|
8417
|
+
names: ['owlbert'],
|
|
8418
|
+
tags: ['owlbert'],
|
|
8419
|
+
description: 'an owlbert for any occasion',
|
|
8420
|
+
category: 'ReadMe'
|
|
8421
|
+
}, {
|
|
8422
|
+
names: ['owlbert-books'],
|
|
8423
|
+
tags: ['owlbert'],
|
|
8424
|
+
description: 'owlbert carrying books',
|
|
8425
|
+
category: 'ReadMe'
|
|
8426
|
+
}, {
|
|
8427
|
+
names: ['owlbert-mask'],
|
|
8428
|
+
tags: ['owlbert'],
|
|
8429
|
+
description: 'owlbert with a respirator',
|
|
8430
|
+
category: 'ReadMe'
|
|
8431
|
+
}, {
|
|
8432
|
+
names: ['owlbert-reading'],
|
|
8433
|
+
tags: ['owlbert'],
|
|
8434
|
+
descritpion: 'owlbert reading',
|
|
8435
|
+
category: 'ReadMe'
|
|
8436
|
+
}, {
|
|
8437
|
+
names: ['owlbert-thinking'],
|
|
8438
|
+
tags: ['owlbert'],
|
|
8439
|
+
description: 'owlbert thinking',
|
|
8440
|
+
category: 'ReadMe'
|
|
8441
|
+
}];
|
|
8442
|
+
var owlmojiNames = owlmoji.flatMap(function (emoji) {
|
|
8443
|
+
return emoji.names;
|
|
8444
|
+
});
|
|
8416
8445
|
var Owlmoji = /*#__PURE__*/_createClass(function Owlmoji() {
|
|
8417
8446
|
"use strict";
|
|
8418
8447
|
|
|
8419
8448
|
_classCallCheck(this, Owlmoji);
|
|
8420
8449
|
});
|
|
8421
8450
|
_defineProperty(Owlmoji, "kind", function (name) {
|
|
8422
|
-
if (name in nameToEmoji) return 'gemoji';else if (name.match(/^fa-/)) return 'fontawesome';else if (
|
|
8451
|
+
if (name in nameToEmoji) return 'gemoji';else if (name.match(/^fa-/)) return 'fontawesome';else if (owlmojiNames.includes(name)) return 'owlmoji';
|
|
8423
8452
|
return null;
|
|
8424
8453
|
});
|
|
8425
8454
|
_defineProperty(Owlmoji, "nameToEmoji", nameToEmoji);
|
|
8455
|
+
_defineProperty(Owlmoji, "owlmoji", gemoji.concat(owlmoji).sort(function (a, b) {
|
|
8456
|
+
return a.names[0] - b.names[0];
|
|
8457
|
+
}));
|
|
8426
8458
|
module.exports = Owlmoji;
|
|
8427
8459
|
|
|
8428
8460
|
/***/ }),
|
|
@@ -8879,9 +8911,13 @@ function ReusableContentCompiler() {
|
|
|
8879
8911
|
}
|
|
8880
8912
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
8881
8913
|
var toConsumableArray = __webpack_require__(5458);
|
|
8914
|
+
// EXTERNAL MODULE: ./node_modules/unist-util-visit/index.js
|
|
8915
|
+
var unist_util_visit = __webpack_require__(5118);
|
|
8882
8916
|
;// CONCATENATED MODULE: ./processor/compile/table.js
|
|
8883
8917
|
|
|
8884
8918
|
|
|
8919
|
+
|
|
8920
|
+
var FlowContent = ['blockquote', 'code', 'heading', 'html', 'list', 'thematicBreak', 'paragraph', 'definition'];
|
|
8885
8921
|
var find = function find(node, fn) {
|
|
8886
8922
|
if (fn(node)) return node;
|
|
8887
8923
|
if (node.children) return node.children.find(function (n) {
|
|
@@ -8897,9 +8933,16 @@ function TableCompiler() {
|
|
|
8897
8933
|
var _node$children$,
|
|
8898
8934
|
_node$children$$child,
|
|
8899
8935
|
_this = this;
|
|
8936
|
+
var hasMultipleBlocks = false;
|
|
8937
|
+
(0,unist_util_visit.visit)(node, function (childNode) {
|
|
8938
|
+
var _childNode$children, _childNode$children$f;
|
|
8939
|
+
if (((_childNode$children = childNode.children) === null || _childNode$children === void 0 ? void 0 : (_childNode$children$f = _childNode$children.filter(function (childChildNode) {
|
|
8940
|
+
return FlowContent.includes(childChildNode.type);
|
|
8941
|
+
})) === null || _childNode$children$f === void 0 ? void 0 : _childNode$children$f.length) > 1) hasMultipleBlocks = true;
|
|
8942
|
+
});
|
|
8900
8943
|
if (!find(node, function (n) {
|
|
8901
8944
|
return n.type === 'break';
|
|
8902
|
-
})) {
|
|
8945
|
+
}) && !hasMultipleBlocks) {
|
|
8903
8946
|
return original.call(this, node);
|
|
8904
8947
|
}
|
|
8905
8948
|
var data = {
|
package/dist/main.node.js
CHANGED
|
@@ -8411,18 +8411,50 @@ var _createClass = __webpack_require__(4579);
|
|
|
8411
8411
|
var _classCallCheck = __webpack_require__(7383);
|
|
8412
8412
|
var _defineProperty = __webpack_require__(3693);
|
|
8413
8413
|
var _require = __webpack_require__(5461),
|
|
8414
|
+
gemoji = _require.gemoji,
|
|
8414
8415
|
nameToEmoji = _require.nameToEmoji;
|
|
8415
|
-
var owlmoji = [
|
|
8416
|
+
var owlmoji = [{
|
|
8417
|
+
names: ['owlbert'],
|
|
8418
|
+
tags: ['owlbert'],
|
|
8419
|
+
description: 'an owlbert for any occasion',
|
|
8420
|
+
category: 'ReadMe'
|
|
8421
|
+
}, {
|
|
8422
|
+
names: ['owlbert-books'],
|
|
8423
|
+
tags: ['owlbert'],
|
|
8424
|
+
description: 'owlbert carrying books',
|
|
8425
|
+
category: 'ReadMe'
|
|
8426
|
+
}, {
|
|
8427
|
+
names: ['owlbert-mask'],
|
|
8428
|
+
tags: ['owlbert'],
|
|
8429
|
+
description: 'owlbert with a respirator',
|
|
8430
|
+
category: 'ReadMe'
|
|
8431
|
+
}, {
|
|
8432
|
+
names: ['owlbert-reading'],
|
|
8433
|
+
tags: ['owlbert'],
|
|
8434
|
+
descritpion: 'owlbert reading',
|
|
8435
|
+
category: 'ReadMe'
|
|
8436
|
+
}, {
|
|
8437
|
+
names: ['owlbert-thinking'],
|
|
8438
|
+
tags: ['owlbert'],
|
|
8439
|
+
description: 'owlbert thinking',
|
|
8440
|
+
category: 'ReadMe'
|
|
8441
|
+
}];
|
|
8442
|
+
var owlmojiNames = owlmoji.flatMap(function (emoji) {
|
|
8443
|
+
return emoji.names;
|
|
8444
|
+
});
|
|
8416
8445
|
var Owlmoji = /*#__PURE__*/_createClass(function Owlmoji() {
|
|
8417
8446
|
"use strict";
|
|
8418
8447
|
|
|
8419
8448
|
_classCallCheck(this, Owlmoji);
|
|
8420
8449
|
});
|
|
8421
8450
|
_defineProperty(Owlmoji, "kind", function (name) {
|
|
8422
|
-
if (name in nameToEmoji) return 'gemoji';else if (name.match(/^fa-/)) return 'fontawesome';else if (
|
|
8451
|
+
if (name in nameToEmoji) return 'gemoji';else if (name.match(/^fa-/)) return 'fontawesome';else if (owlmojiNames.includes(name)) return 'owlmoji';
|
|
8423
8452
|
return null;
|
|
8424
8453
|
});
|
|
8425
8454
|
_defineProperty(Owlmoji, "nameToEmoji", nameToEmoji);
|
|
8455
|
+
_defineProperty(Owlmoji, "owlmoji", gemoji.concat(owlmoji).sort(function (a, b) {
|
|
8456
|
+
return a.names[0] - b.names[0];
|
|
8457
|
+
}));
|
|
8426
8458
|
module.exports = Owlmoji;
|
|
8427
8459
|
|
|
8428
8460
|
/***/ }),
|
|
@@ -9251,9 +9283,13 @@ function ReusableContentCompiler() {
|
|
|
9251
9283
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
9252
9284
|
var toConsumableArray = __webpack_require__(1132);
|
|
9253
9285
|
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
|
9286
|
+
// EXTERNAL MODULE: ./node_modules/unist-util-visit/index.js
|
|
9287
|
+
var unist_util_visit = __webpack_require__(5118);
|
|
9254
9288
|
;// CONCATENATED MODULE: ./processor/compile/table.js
|
|
9255
9289
|
|
|
9256
9290
|
|
|
9291
|
+
|
|
9292
|
+
var FlowContent = ['blockquote', 'code', 'heading', 'html', 'list', 'thematicBreak', 'paragraph', 'definition'];
|
|
9257
9293
|
var find = function find(node, fn) {
|
|
9258
9294
|
if (fn(node)) return node;
|
|
9259
9295
|
if (node.children) return node.children.find(function (n) {
|
|
@@ -9269,9 +9305,16 @@ function TableCompiler() {
|
|
|
9269
9305
|
var _node$children$,
|
|
9270
9306
|
_node$children$$child,
|
|
9271
9307
|
_this = this;
|
|
9308
|
+
var hasMultipleBlocks = false;
|
|
9309
|
+
(0,unist_util_visit.visit)(node, function (childNode) {
|
|
9310
|
+
var _childNode$children, _childNode$children$f;
|
|
9311
|
+
if (((_childNode$children = childNode.children) === null || _childNode$children === void 0 ? void 0 : (_childNode$children$f = _childNode$children.filter(function (childChildNode) {
|
|
9312
|
+
return FlowContent.includes(childChildNode.type);
|
|
9313
|
+
})) === null || _childNode$children$f === void 0 ? void 0 : _childNode$children$f.length) > 1) hasMultipleBlocks = true;
|
|
9314
|
+
});
|
|
9272
9315
|
if (!find(node, function (n) {
|
|
9273
9316
|
return n.type === 'break';
|
|
9274
|
-
})) {
|
|
9317
|
+
}) && !hasMultipleBlocks) {
|
|
9275
9318
|
return original.call(this, node);
|
|
9276
9319
|
}
|
|
9277
9320
|
var data = {
|
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.
|
|
5
|
+
"version": "6.82.1",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"browser": "dist/main.js",
|
|
8
8
|
"files": [
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
"node-sass": "^9.0.0",
|
|
98
98
|
"postcss": "^8.4.35",
|
|
99
99
|
"prettier": "^3.2.5",
|
|
100
|
+
"prettier-2": "npm:prettier@^2.8.8",
|
|
100
101
|
"puppeteer": "^22.4.0",
|
|
101
102
|
"regenerator-runtime": "^0.14.1",
|
|
102
103
|
"sass-loader": "^14.1.1",
|