@readme/markdown 6.76.0 → 6.77.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 CHANGED
@@ -8841,8 +8841,8 @@ var pin_default = /*#__PURE__*/__webpack_require__.n(pin);
8841
8841
  // EXTERNAL MODULE: ./processor/compile/var.js
8842
8842
  var compile_var = __webpack_require__(5466);
8843
8843
  var var_default = /*#__PURE__*/__webpack_require__.n(compile_var);
8844
- // EXTERNAL MODULE: ./processor/transform/reusable-content.js + 2 modules
8845
- var reusable_content = __webpack_require__(4196);
8844
+ // EXTERNAL MODULE: ./processor/parse/reusable-content-parser.js + 2 modules
8845
+ var reusable_content_parser = __webpack_require__(5874);
8846
8846
  ;// CONCATENATED MODULE: ./processor/compile/reusable-content.js
8847
8847
 
8848
8848
  function ReusableContentCompiler() {
@@ -8851,7 +8851,7 @@ function ReusableContentCompiler() {
8851
8851
  serialize = _ref$serialize === void 0 ? true : _ref$serialize;
8852
8852
  var Compiler = this.Compiler;
8853
8853
  var visitors = Compiler.prototype.visitors;
8854
- visitors[reusable_content/* type */.N] = function (node) {
8854
+ visitors[reusable_content_parser/* type */.N] = function (node) {
8855
8855
  return serialize ? "<".concat(node.tag, " />") : this.block(node);
8856
8856
  };
8857
8857
  }
@@ -9441,6 +9441,7 @@ __webpack_require__.d(__webpack_exports__, {
9441
9441
  gemojiParser: () => (/* reexport */ (gemoji_parser_default())),
9442
9442
  htmlBlockParser: () => (/* reexport */ html_block),
9443
9443
  magicBlockParser: () => (/* reexport */ (magic_block_parser_default())),
9444
+ reusableContentParser: () => (/* reexport */ reusable_content_parser/* default */.A),
9444
9445
  variableParser: () => (/* reexport */ (variable_parser_default()))
9445
9446
  });
9446
9447
 
@@ -9502,6 +9503,8 @@ parser.sanitize = function () {
9502
9503
  // EXTERNAL MODULE: ./processor/parse/compact-headings.js
9503
9504
  var compact_headings = __webpack_require__(3778);
9504
9505
  var compact_headings_default = /*#__PURE__*/__webpack_require__.n(compact_headings);
9506
+ // EXTERNAL MODULE: ./processor/parse/reusable-content-parser.js + 2 modules
9507
+ var reusable_content_parser = __webpack_require__(5874);
9505
9508
  // EXTERNAL MODULE: ./processor/parse/variable-parser.js
9506
9509
  var variable_parser = __webpack_require__(9401);
9507
9510
  var variable_parser_default = /*#__PURE__*/__webpack_require__.n(variable_parser);
@@ -9542,6 +9545,7 @@ function html_block_parser() {
9542
9545
 
9543
9546
 
9544
9547
 
9548
+
9545
9549
  /***/ }),
9546
9550
 
9547
9551
  /***/ 9412:
@@ -9864,6 +9868,89 @@ module.exports.imgSizeByWidth = imgSizeByWidth;
9864
9868
 
9865
9869
  /***/ }),
9866
9870
 
9871
+ /***/ 5874:
9872
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9873
+
9874
+ "use strict";
9875
+
9876
+ // EXPORTS
9877
+ __webpack_require__.d(__webpack_exports__, {
9878
+ A: () => (/* binding */ reusable_content_parser),
9879
+ N: () => (/* binding */ type)
9880
+ });
9881
+
9882
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
9883
+ var esm_typeof = __webpack_require__(2284);
9884
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
9885
+ function _setPrototypeOf(o, p) {
9886
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
9887
+ o.__proto__ = p;
9888
+ return o;
9889
+ };
9890
+ return _setPrototypeOf(o, p);
9891
+ }
9892
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
9893
+
9894
+ function _inherits(subClass, superClass) {
9895
+ if (typeof superClass !== "function" && superClass !== null) {
9896
+ throw new TypeError("Super expression must either be null or a function");
9897
+ }
9898
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
9899
+ constructor: {
9900
+ value: subClass,
9901
+ writable: true,
9902
+ configurable: true
9903
+ }
9904
+ });
9905
+ Object.defineProperty(subClass, "prototype", {
9906
+ writable: false
9907
+ });
9908
+ if (superClass) _setPrototypeOf(subClass, superClass);
9909
+ }
9910
+ ;// CONCATENATED MODULE: ./processor/parse/reusable-content-parser.js
9911
+
9912
+
9913
+
9914
+ function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = new RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != (0,esm_typeof/* default */.A)(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
9915
+ var _require = __webpack_require__(9564),
9916
+ insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
9917
+ var type = 'reusable-content';
9918
+ function tokenizeReusableContent(eat, value, silent) {
9919
+ var _this$data = this.data('reusableContent'),
9920
+ tags = _this$data.tags,
9921
+ disabled = _this$data.disabled,
9922
+ _this$data$wrap = _this$data.wrap,
9923
+ wrap = _this$data$wrap === void 0 ? true : _this$data$wrap;
9924
+ if (disabled) return false;
9925
+
9926
+ // Modifies the regular expression to match from
9927
+ // the start of the line
9928
+ var match = /*#__PURE__*/_wrapRegExp(/^<([A-Z]\S+)\s*\/>\s*\n/, {
9929
+ tag: 1
9930
+ }).exec(value);
9931
+ if (!match || !match.groups.tag) return false;
9932
+ var tag = match.groups.tag;
9933
+
9934
+ /* istanbul ignore if */
9935
+ if (silent) return true;
9936
+ var node = wrap ? {
9937
+ type: 'reusable-content',
9938
+ tag: tag,
9939
+ children: tag in tags ? tags[tag] : []
9940
+ } : tags[tag];
9941
+ return eat(match[0])(node);
9942
+ }
9943
+ function parser() {
9944
+ insertBlockTokenizerBefore.call(this, {
9945
+ name: 'reusableContent',
9946
+ before: 'html',
9947
+ tokenizer: tokenizeReusableContent.bind(this)
9948
+ });
9949
+ }
9950
+ /* harmony default export */ const reusable_content_parser = (parser);
9951
+
9952
+ /***/ }),
9953
+
9867
9954
  /***/ 9564:
9868
9955
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9869
9956
 
@@ -10122,8 +10209,6 @@ __webpack_require__.d(__webpack_exports__, {
10122
10209
  remarkTransformers: () => (/* binding */ remarkTransformers)
10123
10210
  });
10124
10211
 
10125
- // EXTERNAL MODULE: ./processor/transform/reusable-content.js + 2 modules
10126
- var reusable_content = __webpack_require__(4196);
10127
10212
  // EXTERNAL MODULE: ./node_modules/unist-util-visit/index.js
10128
10213
  var unist_util_visit = __webpack_require__(5118);
10129
10214
  ;// CONCATENATED MODULE: ./processor/transform/single-code-tabs.js
@@ -10195,98 +10280,11 @@ var tableCellInlineCode = function tableCellInlineCode() {
10195
10280
  ;// CONCATENATED MODULE: ./processor/transform/index.js
10196
10281
 
10197
10282
 
10198
-
10199
- var remarkTransformers = [single_code_tabs, reusable_content/* default */.A];
10283
+ var remarkTransformers = [single_code_tabs];
10200
10284
  var rehypeTransformers = [table_cell_inline_code];
10201
10285
 
10202
10286
  /***/ }),
10203
10287
 
10204
- /***/ 4196:
10205
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10206
-
10207
- "use strict";
10208
-
10209
- // EXPORTS
10210
- __webpack_require__.d(__webpack_exports__, {
10211
- A: () => (/* binding */ reusable_content),
10212
- N: () => (/* binding */ type)
10213
- });
10214
-
10215
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
10216
- var esm_typeof = __webpack_require__(2284);
10217
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
10218
- var toConsumableArray = __webpack_require__(5458);
10219
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
10220
- function _setPrototypeOf(o, p) {
10221
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
10222
- o.__proto__ = p;
10223
- return o;
10224
- };
10225
- return _setPrototypeOf(o, p);
10226
- }
10227
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
10228
-
10229
- function _inherits(subClass, superClass) {
10230
- if (typeof superClass !== "function" && superClass !== null) {
10231
- throw new TypeError("Super expression must either be null or a function");
10232
- }
10233
- subClass.prototype = Object.create(superClass && superClass.prototype, {
10234
- constructor: {
10235
- value: subClass,
10236
- writable: true,
10237
- configurable: true
10238
- }
10239
- });
10240
- Object.defineProperty(subClass, "prototype", {
10241
- writable: false
10242
- });
10243
- if (superClass) _setPrototypeOf(subClass, superClass);
10244
- }
10245
- // EXTERNAL MODULE: ./node_modules/unist-util-visit/index.js
10246
- var unist_util_visit = __webpack_require__(5118);
10247
- ;// CONCATENATED MODULE: ./processor/transform/reusable-content.js
10248
-
10249
-
10250
-
10251
-
10252
- function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = new RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != (0,esm_typeof/* default */.A)(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
10253
-
10254
- var type = 'reusable-content';
10255
- var regexp = /*#__PURE__*/_wrapRegExp(/^\s*<([A-Z]\S+)\s*\/>\s*$/, {
10256
- tag: 1
10257
- });
10258
- var reusableContentTransformer = function reusableContentTransformer() {
10259
- var _this$data = this.data('reusableContent'),
10260
- tags = _this$data.tags,
10261
- disabled = _this$data.disabled,
10262
- _this$data$wrap = _this$data.wrap,
10263
- wrap = _this$data$wrap === void 0 ? true : _this$data$wrap;
10264
- if (disabled) return function () {
10265
- return undefined;
10266
- };
10267
- return function (tree) {
10268
- (0,unist_util_visit.visit)(tree, 'html', function (node, index, parent) {
10269
- var result = regexp.exec(node.value);
10270
- if (!result || !result.groups.tag) return;
10271
- var tag = result.groups.tag;
10272
- if (wrap) {
10273
- parent.children[index] = {
10274
- type: type,
10275
- tag: tag,
10276
- children: tag in tags ? tags[tag] : []
10277
- };
10278
- } else {
10279
- var _parent$children;
10280
- (_parent$children = parent.children).splice.apply(_parent$children, [index, tags[tag].length].concat((0,toConsumableArray/* default */.A)(tags[tag])));
10281
- }
10282
- });
10283
- return tree;
10284
- };
10285
- };
10286
- /* harmony default export */ const reusable_content = (reusableContentTransformer);
10287
-
10288
- /***/ }),
10289
-
10290
10288
  /***/ 2562:
10291
10289
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10292
10290
 
package/dist/main.node.js CHANGED
@@ -9206,8 +9206,8 @@ var pin_default = /*#__PURE__*/__webpack_require__.n(pin);
9206
9206
  // EXTERNAL MODULE: ./processor/compile/var.js
9207
9207
  var compile_var = __webpack_require__(5466);
9208
9208
  var var_default = /*#__PURE__*/__webpack_require__.n(compile_var);
9209
- // EXTERNAL MODULE: ./processor/transform/reusable-content.js
9210
- var reusable_content = __webpack_require__(8633);
9209
+ // EXTERNAL MODULE: ./processor/parse/reusable-content-parser.js
9210
+ var reusable_content_parser = __webpack_require__(2350);
9211
9211
  ;// CONCATENATED MODULE: ./processor/compile/reusable-content.js
9212
9212
 
9213
9213
  function ReusableContentCompiler() {
@@ -9216,7 +9216,7 @@ function ReusableContentCompiler() {
9216
9216
  serialize = _ref$serialize === void 0 ? true : _ref$serialize;
9217
9217
  var Compiler = this.Compiler;
9218
9218
  var visitors = Compiler.prototype.visitors;
9219
- visitors[reusable_content/* type */.N] = function (node) {
9219
+ visitors[reusable_content_parser/* type */.N] = function (node) {
9220
9220
  return serialize ? "<".concat(node.tag, " />") : this.block(node);
9221
9221
  };
9222
9222
  }
@@ -9809,6 +9809,7 @@ __webpack_require__.d(__webpack_exports__, {
9809
9809
  gemojiParser: () => (/* reexport */ (gemoji_parser_default())),
9810
9810
  htmlBlockParser: () => (/* reexport */ html_block),
9811
9811
  magicBlockParser: () => (/* reexport */ (magic_block_parser_default())),
9812
+ reusableContentParser: () => (/* reexport */ reusable_content_parser/* default */.A),
9812
9813
  variableParser: () => (/* reexport */ (variable_parser_default()))
9813
9814
  });
9814
9815
 
@@ -9870,6 +9871,8 @@ parser.sanitize = function () {
9870
9871
  // EXTERNAL MODULE: ./processor/parse/compact-headings.js
9871
9872
  var compact_headings = __webpack_require__(3778);
9872
9873
  var compact_headings_default = /*#__PURE__*/__webpack_require__.n(compact_headings);
9874
+ // EXTERNAL MODULE: ./processor/parse/reusable-content-parser.js
9875
+ var reusable_content_parser = __webpack_require__(2350);
9873
9876
  // EXTERNAL MODULE: ./processor/parse/variable-parser.js
9874
9877
  var variable_parser = __webpack_require__(9401);
9875
9878
  var variable_parser_default = /*#__PURE__*/__webpack_require__.n(variable_parser);
@@ -9911,6 +9914,7 @@ function html_block_parser() {
9911
9914
 
9912
9915
 
9913
9916
 
9917
+
9914
9918
  /***/ }),
9915
9919
 
9916
9920
  /***/ 9412:
@@ -10233,6 +10237,63 @@ module.exports.imgSizeByWidth = imgSizeByWidth;
10233
10237
 
10234
10238
  /***/ }),
10235
10239
 
10240
+ /***/ 2350:
10241
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10242
+
10243
+ "use strict";
10244
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10245
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__),
10246
+ /* harmony export */ N: () => (/* binding */ type)
10247
+ /* harmony export */ });
10248
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3738);
10249
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
10250
+ /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9511);
10251
+ /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__);
10252
+ /* harmony import */ var _babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5636);
10253
+ /* harmony import */ var _babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_2__);
10254
+
10255
+
10256
+
10257
+ function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = new RegExp(e, t); return r.set(o, p || r.get(e)), _babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default()(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
10258
+ var _require = __webpack_require__(9564),
10259
+ insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
10260
+ var type = 'reusable-content';
10261
+ function tokenizeReusableContent(eat, value, silent) {
10262
+ var _this$data = this.data('reusableContent'),
10263
+ tags = _this$data.tags,
10264
+ disabled = _this$data.disabled,
10265
+ _this$data$wrap = _this$data.wrap,
10266
+ wrap = _this$data$wrap === void 0 ? true : _this$data$wrap;
10267
+ if (disabled) return false;
10268
+
10269
+ // Modifies the regular expression to match from
10270
+ // the start of the line
10271
+ var match = /*#__PURE__*/_wrapRegExp(/^<([A-Z]\S+)\s*\/>\s*\n/, {
10272
+ tag: 1
10273
+ }).exec(value);
10274
+ if (!match || !match.groups.tag) return false;
10275
+ var tag = match.groups.tag;
10276
+
10277
+ /* istanbul ignore if */
10278
+ if (silent) return true;
10279
+ var node = wrap ? {
10280
+ type: 'reusable-content',
10281
+ tag: tag,
10282
+ children: tag in tags ? tags[tag] : []
10283
+ } : tags[tag];
10284
+ return eat(match[0])(node);
10285
+ }
10286
+ function parser() {
10287
+ insertBlockTokenizerBefore.call(this, {
10288
+ name: 'reusableContent',
10289
+ before: 'html',
10290
+ tokenizer: tokenizeReusableContent.bind(this)
10291
+ });
10292
+ }
10293
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parser);
10294
+
10295
+ /***/ }),
10296
+
10236
10297
  /***/ 9564:
10237
10298
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10238
10299
 
@@ -10492,8 +10553,6 @@ __webpack_require__.d(__webpack_exports__, {
10492
10553
  remarkTransformers: () => (/* binding */ remarkTransformers)
10493
10554
  });
10494
10555
 
10495
- // EXTERNAL MODULE: ./processor/transform/reusable-content.js
10496
- var reusable_content = __webpack_require__(8633);
10497
10556
  // EXTERNAL MODULE: ./node_modules/unist-util-visit/index.js
10498
10557
  var unist_util_visit = __webpack_require__(5118);
10499
10558
  ;// CONCATENATED MODULE: ./processor/transform/single-code-tabs.js
@@ -10565,71 +10624,11 @@ var tableCellInlineCode = function tableCellInlineCode() {
10565
10624
  ;// CONCATENATED MODULE: ./processor/transform/index.js
10566
10625
 
10567
10626
 
10568
-
10569
- var remarkTransformers = [single_code_tabs, reusable_content/* default */.A];
10627
+ var remarkTransformers = [single_code_tabs];
10570
10628
  var rehypeTransformers = [table_cell_inline_code];
10571
10629
 
10572
10630
  /***/ }),
10573
10631
 
10574
- /***/ 8633:
10575
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10576
-
10577
- "use strict";
10578
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10579
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__),
10580
- /* harmony export */ N: () => (/* binding */ type)
10581
- /* harmony export */ });
10582
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3738);
10583
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
10584
- /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1132);
10585
- /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
10586
- /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9511);
10587
- /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);
10588
- /* harmony import */ var _babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5636);
10589
- /* harmony import */ var _babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_3__);
10590
- /* harmony import */ var unist_util_visit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5118);
10591
-
10592
-
10593
-
10594
-
10595
- function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = new RegExp(e, t); return r.set(o, p || r.get(e)), _babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
10596
-
10597
- var type = 'reusable-content';
10598
- var regexp = /*#__PURE__*/_wrapRegExp(/^\s*<([A-Z]\S+)\s*\/>\s*$/, {
10599
- tag: 1
10600
- });
10601
- var reusableContentTransformer = function reusableContentTransformer() {
10602
- var _this$data = this.data('reusableContent'),
10603
- tags = _this$data.tags,
10604
- disabled = _this$data.disabled,
10605
- _this$data$wrap = _this$data.wrap,
10606
- wrap = _this$data$wrap === void 0 ? true : _this$data$wrap;
10607
- if (disabled) return function () {
10608
- return undefined;
10609
- };
10610
- return function (tree) {
10611
- (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_4__.visit)(tree, 'html', function (node, index, parent) {
10612
- var result = regexp.exec(node.value);
10613
- if (!result || !result.groups.tag) return;
10614
- var tag = result.groups.tag;
10615
- if (wrap) {
10616
- parent.children[index] = {
10617
- type: type,
10618
- tag: tag,
10619
- children: tag in tags ? tags[tag] : []
10620
- };
10621
- } else {
10622
- var _parent$children;
10623
- (_parent$children = parent.children).splice.apply(_parent$children, [index, tags[tag].length].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(tags[tag])));
10624
- }
10625
- });
10626
- return tree;
10627
- };
10628
- };
10629
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reusableContentTransformer);
10630
-
10631
- /***/ }),
10632
-
10633
10632
  /***/ 2562:
10634
10633
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10635
10634
 
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.76.0",
5
+ "version": "6.77.1",
6
6
  "main": "dist/main.node.js",
7
7
  "browser": "dist/main.js",
8
8
  "files": [
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@readme/variable": "^16.0.0",
62
- "@tippyjs/react": "^4.2.6",
62
+ "@tippyjs/react": "^4.1.0",
63
63
  "react": "^16.14.0",
64
64
  "react-dom": "^16.14.0"
65
65
  },