@readme/markdown 6.55.1 → 6.55.2

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 CHANGED
@@ -25165,7 +25165,7 @@ module.exports.sanitize = function (sanitizeSchema) {
25165
25165
 
25166
25166
  /***/ }),
25167
25167
 
25168
- /***/ 8160:
25168
+ /***/ 6284:
25169
25169
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
25170
25170
 
25171
25171
  "use strict";
@@ -25179,8 +25179,33 @@ __webpack_require__.d(__webpack_exports__, {
25179
25179
  "sanitize": () => (/* binding */ sanitize)
25180
25180
  });
25181
25181
 
25182
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 5 modules
25183
- var slicedToArray = __webpack_require__(8152);
25182
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
25183
+ var arrayLikeToArray = __webpack_require__(907);
25184
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
25185
+
25186
+ function _arrayWithoutHoles(arr) {
25187
+ if (Array.isArray(arr)) return (0,arrayLikeToArray/* default */.Z)(arr);
25188
+ }
25189
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
25190
+ function _iterableToArray(iter) {
25191
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25192
+ }
25193
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
25194
+ var unsupportedIterableToArray = __webpack_require__(181);
25195
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
25196
+ function _nonIterableSpread() {
25197
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
25198
+ }
25199
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
25200
+
25201
+
25202
+
25203
+
25204
+ function _toConsumableArray(arr) {
25205
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || (0,unsupportedIterableToArray/* default */.Z)(arr) || _nonIterableSpread();
25206
+ }
25207
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
25208
+ var slicedToArray = __webpack_require__(1037);
25184
25209
  ;// CONCATENATED MODULE: ./node_modules/emoji-regex/index.mjs
25185
25210
  /* harmony default export */ const emoji_regex = (() => {
25186
25211
  // https://mths.be/emoji
@@ -25195,6 +25220,7 @@ var trim = __webpack_require__(2745);
25195
25220
  var trim_default = /*#__PURE__*/__webpack_require__.n(trim);
25196
25221
  ;// CONCATENATED MODULE: ./processor/parse/flavored/callout.js
25197
25222
 
25223
+
25198
25224
  /* eslint-disable no-plusplus */
25199
25225
  /* eslint-disable consistent-return */
25200
25226
 
@@ -25249,7 +25275,6 @@ function blockquoteReadme(eat, value, silent) {
25249
25275
  var line;
25250
25276
  var startIndex;
25251
25277
  var prefixed;
25252
- var icon;
25253
25278
  while (index < length) {
25254
25279
  character = value.charAt(index);
25255
25280
  if (character !== space && character !== tab) {
@@ -25313,19 +25338,13 @@ function blockquoteReadme(eat, value, silent) {
25313
25338
  offsets[currentLine] = (offsets[currentLine] || 0) + indents[index];
25314
25339
  currentLine++;
25315
25340
  }
25316
- var match;
25317
- var title;
25318
- var body;
25319
- if (match = contents[0].match(regex)) {
25320
- icon = match[1];
25321
- contents[0] = contents[0].slice(match[0].length);
25322
- title = trim_default()(contents[0]);
25323
- body = trim_default()(contents.slice(1).join(lineFeed));
25324
- }
25325
- var exit = self.enterBlock();
25326
- contents = self.tokenizeBlock(contents.join(lineFeed), now);
25327
- exit();
25341
+ var _ref3 = contents[0].match(regex) || [],
25342
+ _ref4 = (0,slicedToArray/* default */.Z)(_ref3, 2),
25343
+ match = _ref4[0],
25344
+ icon = _ref4[1];
25328
25345
  if (icon) {
25346
+ var title = trim_default()(contents[0].slice(match.length));
25347
+ var body = trim_default()(contents.slice(1).join(lineFeed));
25329
25348
  var data = {
25330
25349
  hName: 'rdme-callout',
25331
25350
  hProperties: {
@@ -25335,15 +25354,21 @@ function blockquoteReadme(eat, value, silent) {
25335
25354
  theme: themes[icon] || 'default'
25336
25355
  }
25337
25356
  };
25357
+ var _exit = self.enterBlock();
25358
+ var _children = [].concat(_toConsumableArray(self.tokenizeBlock(title, now)), _toConsumableArray(self.tokenizeBlock(body, now)));
25359
+ _exit();
25338
25360
  return add({
25339
25361
  type: 'rdme-callout',
25340
- children: contents,
25362
+ children: _children,
25341
25363
  data: data
25342
25364
  });
25343
25365
  }
25366
+ var exit = self.enterBlock();
25367
+ var children = self.tokenizeBlock(contents.join(lineFeed), now);
25368
+ exit();
25344
25369
  return add({
25345
25370
  type: 'blockquote',
25346
- children: contents
25371
+ children: children
25347
25372
  });
25348
25373
  }
25349
25374
  function parser() {
@@ -25593,8 +25618,8 @@ var magic_block_parser_default = /*#__PURE__*/__webpack_require__.n(magic_block_
25593
25618
  // EXTERNAL MODULE: ./processor/parse/flavored/code-tabs.js
25594
25619
  var code_tabs = __webpack_require__(5289);
25595
25620
  var code_tabs_default = /*#__PURE__*/__webpack_require__.n(code_tabs);
25596
- // EXTERNAL MODULE: ./processor/parse/flavored/callout.js + 1 modules
25597
- var callout = __webpack_require__(8160);
25621
+ // EXTERNAL MODULE: ./processor/parse/flavored/callout.js + 5 modules
25622
+ var callout = __webpack_require__(6284);
25598
25623
  // EXTERNAL MODULE: ./processor/parse/flavored/embed.js
25599
25624
  var flavored_embed = __webpack_require__(1559);
25600
25625
  var embed_default = /*#__PURE__*/__webpack_require__.n(flavored_embed);
@@ -46852,6 +46877,25 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__4466__;
46852
46877
 
46853
46878
  /***/ }),
46854
46879
 
46880
+ /***/ 907:
46881
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
46882
+
46883
+ "use strict";
46884
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46885
+ /* harmony export */ "Z": () => (/* binding */ _arrayLikeToArray)
46886
+ /* harmony export */ });
46887
+ function _arrayLikeToArray(arr, len) {
46888
+ if (len == null || len > arr.length) len = arr.length;
46889
+
46890
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
46891
+ arr2[i] = arr[i];
46892
+ }
46893
+
46894
+ return arr2;
46895
+ }
46896
+
46897
+ /***/ }),
46898
+
46855
46899
  /***/ 4942:
46856
46900
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
46857
46901
 
@@ -46876,7 +46920,7 @@ function _defineProperty(obj, key, value) {
46876
46920
 
46877
46921
  /***/ }),
46878
46922
 
46879
- /***/ 8152:
46923
+ /***/ 1037:
46880
46924
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
46881
46925
 
46882
46926
  "use strict";
@@ -46920,26 +46964,8 @@ function _iterableToArrayLimit(arr, i) {
46920
46964
 
46921
46965
  return _arr;
46922
46966
  }
46923
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
46924
- function _arrayLikeToArray(arr, len) {
46925
- if (len == null || len > arr.length) len = arr.length;
46926
-
46927
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
46928
- arr2[i] = arr[i];
46929
- }
46930
-
46931
- return arr2;
46932
- }
46933
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
46934
-
46935
- function _unsupportedIterableToArray(o, minLen) {
46936
- if (!o) return;
46937
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
46938
- var n = Object.prototype.toString.call(o).slice(8, -1);
46939
- if (n === "Object" && o.constructor) n = o.constructor.name;
46940
- if (n === "Map" || n === "Set") return Array.from(o);
46941
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
46942
- }
46967
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
46968
+ var unsupportedIterableToArray = __webpack_require__(181);
46943
46969
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
46944
46970
  function _nonIterableRest() {
46945
46971
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -46950,7 +46976,27 @@ function _nonIterableRest() {
46950
46976
 
46951
46977
 
46952
46978
  function _slicedToArray(arr, i) {
46953
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
46979
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || (0,unsupportedIterableToArray/* default */.Z)(arr, i) || _nonIterableRest();
46980
+ }
46981
+
46982
+ /***/ }),
46983
+
46984
+ /***/ 181:
46985
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
46986
+
46987
+ "use strict";
46988
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46989
+ /* harmony export */ "Z": () => (/* binding */ _unsupportedIterableToArray)
46990
+ /* harmony export */ });
46991
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(907);
46992
+
46993
+ function _unsupportedIterableToArray(o, minLen) {
46994
+ if (!o) return;
46995
+ if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(o, minLen);
46996
+ var n = Object.prototype.toString.call(o).slice(8, -1);
46997
+ if (n === "Object" && o.constructor) n = o.constructor.name;
46998
+ if (n === "Map" || n === "Set") return Array.from(o);
46999
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(o, minLen);
46954
47000
  }
46955
47001
 
46956
47002
  /***/ }),
@@ -48852,7 +48898,7 @@ __webpack_require__.r(__webpack_exports__);
48852
48898
  /* harmony export */ "utils": () => (/* binding */ utils)
48853
48899
  /* harmony export */ });
48854
48900
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4942);
48855
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8152);
48901
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1037);
48856
48902
 
48857
48903
 
48858
48904
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -48888,7 +48934,7 @@ var registerCustomComponents = __webpack_require__(1264);
48888
48934
  var _require4 = __webpack_require__(2531),
48889
48935
  options = _require4.options,
48890
48936
  parseOptions = _require4.parseOptions;
48891
- var _require5 = __webpack_require__(8160),
48937
+ var _require5 = __webpack_require__(6284),
48892
48938
  calloutIcons = _require5.icons;
48893
48939
  var toPlainText = __webpack_require__(4792);
48894
48940
  var sectionAnchorId = __webpack_require__(9620);
package/dist/main.node.js CHANGED
@@ -9980,6 +9980,9 @@ __webpack_require__.d(__webpack_exports__, {
9980
9980
  "sanitize": () => (/* binding */ sanitize)
9981
9981
  });
9982
9982
 
9983
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
9984
+ var toConsumableArray = __webpack_require__(319);
9985
+ var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
9983
9986
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
9984
9987
  var slicedToArray = __webpack_require__(3038);
9985
9988
  var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
@@ -9997,6 +10000,7 @@ var trim = __webpack_require__(2745);
9997
10000
  var trim_default = /*#__PURE__*/__webpack_require__.n(trim);
9998
10001
  ;// CONCATENATED MODULE: ./processor/parse/flavored/callout.js
9999
10002
 
10003
+
10000
10004
  /* eslint-disable no-plusplus */
10001
10005
  /* eslint-disable consistent-return */
10002
10006
 
@@ -10051,7 +10055,6 @@ function blockquoteReadme(eat, value, silent) {
10051
10055
  var line;
10052
10056
  var startIndex;
10053
10057
  var prefixed;
10054
- var icon;
10055
10058
  while (index < length) {
10056
10059
  character = value.charAt(index);
10057
10060
  if (character !== space && character !== tab) {
@@ -10115,19 +10118,13 @@ function blockquoteReadme(eat, value, silent) {
10115
10118
  offsets[currentLine] = (offsets[currentLine] || 0) + indents[index];
10116
10119
  currentLine++;
10117
10120
  }
10118
- var match;
10119
- var title;
10120
- var body;
10121
- if (match = contents[0].match(regex)) {
10122
- icon = match[1];
10123
- contents[0] = contents[0].slice(match[0].length);
10124
- title = trim_default()(contents[0]);
10125
- body = trim_default()(contents.slice(1).join(lineFeed));
10126
- }
10127
- var exit = self.enterBlock();
10128
- contents = self.tokenizeBlock(contents.join(lineFeed), now);
10129
- exit();
10121
+ var _ref3 = contents[0].match(regex) || [],
10122
+ _ref4 = slicedToArray_default()(_ref3, 2),
10123
+ match = _ref4[0],
10124
+ icon = _ref4[1];
10130
10125
  if (icon) {
10126
+ var title = trim_default()(contents[0].slice(match.length));
10127
+ var body = trim_default()(contents.slice(1).join(lineFeed));
10131
10128
  var data = {
10132
10129
  hName: 'rdme-callout',
10133
10130
  hProperties: {
@@ -10137,15 +10134,21 @@ function blockquoteReadme(eat, value, silent) {
10137
10134
  theme: themes[icon] || 'default'
10138
10135
  }
10139
10136
  };
10137
+ var _exit = self.enterBlock();
10138
+ var _children = [].concat(toConsumableArray_default()(self.tokenizeBlock(title, now)), toConsumableArray_default()(self.tokenizeBlock(body, now)));
10139
+ _exit();
10140
10140
  return add({
10141
10141
  type: 'rdme-callout',
10142
- children: contents,
10142
+ children: _children,
10143
10143
  data: data
10144
10144
  });
10145
10145
  }
10146
+ var exit = self.enterBlock();
10147
+ var children = self.tokenizeBlock(contents.join(lineFeed), now);
10148
+ exit();
10146
10149
  return add({
10147
10150
  type: 'blockquote',
10148
- children: contents
10151
+ children: children
10149
10152
  });
10150
10153
  }
10151
10154
  function parser() {
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.55.1",
5
+ "version": "6.55.2",
6
6
  "main": "dist/main.node.js",
7
7
  "browser": "dist/main.js",
8
8
  "files": [