@readme/markdown 6.70.1 → 6.71.0
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 +59 -22
- package/dist/main.node.js +24 -14
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -8835,15 +8835,15 @@ var pin_default = /*#__PURE__*/__webpack_require__.n(pin);
|
|
|
8835
8835
|
// EXTERNAL MODULE: ./processor/compile/var.js
|
|
8836
8836
|
var compile_var = __webpack_require__(1067);
|
|
8837
8837
|
var var_default = /*#__PURE__*/__webpack_require__.n(compile_var);
|
|
8838
|
-
// EXTERNAL MODULE: ./processor/transform/reusable-content.js
|
|
8839
|
-
var reusable_content = __webpack_require__(
|
|
8838
|
+
// EXTERNAL MODULE: ./processor/transform/reusable-content.js + 2 modules
|
|
8839
|
+
var reusable_content = __webpack_require__(6462);
|
|
8840
8840
|
;// CONCATENATED MODULE: ./processor/compile/reusable-content.js
|
|
8841
8841
|
|
|
8842
8842
|
function ReusableContentCompiler() {
|
|
8843
8843
|
var Compiler = this.Compiler;
|
|
8844
8844
|
var visitors = Compiler.prototype.visitors;
|
|
8845
|
-
visitors[reusable_content/* type */.
|
|
8846
|
-
return "<".concat(
|
|
8845
|
+
visitors[reusable_content/* type */.d] = function (node) {
|
|
8846
|
+
return "<".concat(node.tag, " />");
|
|
8847
8847
|
};
|
|
8848
8848
|
}
|
|
8849
8849
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
@@ -10133,8 +10133,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10133
10133
|
"remarkTransformers": () => (/* binding */ remarkTransformers)
|
|
10134
10134
|
});
|
|
10135
10135
|
|
|
10136
|
-
// EXTERNAL MODULE: ./processor/transform/reusable-content.js
|
|
10137
|
-
var reusable_content = __webpack_require__(
|
|
10136
|
+
// EXTERNAL MODULE: ./processor/transform/reusable-content.js + 2 modules
|
|
10137
|
+
var reusable_content = __webpack_require__(6462);
|
|
10138
10138
|
// EXTERNAL MODULE: ./node_modules/unist-util-visit/index.js
|
|
10139
10139
|
var unist_util_visit = __webpack_require__(6393);
|
|
10140
10140
|
;// CONCATENATED MODULE: ./processor/transform/single-code-tabs.js
|
|
@@ -10207,43 +10207,80 @@ var tableCellInlineCode = function tableCellInlineCode() {
|
|
|
10207
10207
|
|
|
10208
10208
|
|
|
10209
10209
|
|
|
10210
|
-
var remarkTransformers = [single_code_tabs, reusable_content/* default */.
|
|
10210
|
+
var remarkTransformers = [single_code_tabs, reusable_content/* default */.Z];
|
|
10211
10211
|
var rehypeTransformers = [table_cell_inline_code];
|
|
10212
10212
|
|
|
10213
10213
|
/***/ }),
|
|
10214
10214
|
|
|
10215
|
-
/***/
|
|
10215
|
+
/***/ 6462:
|
|
10216
10216
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10217
10217
|
|
|
10218
10218
|
"use strict";
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
/*
|
|
10224
|
-
|
|
10219
|
+
|
|
10220
|
+
// EXPORTS
|
|
10221
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
10222
|
+
"Z": () => (/* binding */ reusable_content),
|
|
10223
|
+
"d": () => (/* binding */ type)
|
|
10224
|
+
});
|
|
10225
|
+
|
|
10226
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
10227
|
+
var esm_typeof = __webpack_require__(1002);
|
|
10228
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
10229
|
+
function _setPrototypeOf(o, p) {
|
|
10230
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
10231
|
+
o.__proto__ = p;
|
|
10232
|
+
return o;
|
|
10233
|
+
};
|
|
10234
|
+
return _setPrototypeOf(o, p);
|
|
10235
|
+
}
|
|
10236
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
10237
|
+
|
|
10238
|
+
function _inherits(subClass, superClass) {
|
|
10239
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
10240
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
10241
|
+
}
|
|
10242
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
10243
|
+
constructor: {
|
|
10244
|
+
value: subClass,
|
|
10245
|
+
writable: true,
|
|
10246
|
+
configurable: true
|
|
10247
|
+
}
|
|
10248
|
+
});
|
|
10249
|
+
Object.defineProperty(subClass, "prototype", {
|
|
10250
|
+
writable: false
|
|
10251
|
+
});
|
|
10252
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
10253
|
+
}
|
|
10254
|
+
// EXTERNAL MODULE: ./node_modules/unist-util-visit/index.js
|
|
10255
|
+
var unist_util_visit = __webpack_require__(6393);
|
|
10256
|
+
;// CONCATENATED MODULE: ./processor/transform/reusable-content.js
|
|
10257
|
+
|
|
10258
|
+
|
|
10259
|
+
|
|
10260
|
+
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(re, groups) { return new BabelRegExp(re, void 0, groups); }; var _super = RegExp.prototype, _groups = new WeakMap(); function BabelRegExp(re, flags, groups) { var _this = new RegExp(re, flags); return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype); } function buildGroups(result, re) { var g = _groups.get(re); return Object.keys(g).reduce(function (groups, name) { var i = g[name]; if ("number" == typeof i) groups[name] = result[i];else { for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) { k++; } groups[name] = result[i[k]]; } return groups; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { var result = _super.exec.call(this, str); return result && (result.groups = buildGroups(result, this)), result; }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { if ("string" == typeof substitution) { var groups = _groups.get(this); return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { return "$" + groups[name]; })); } if ("function" == typeof substitution) { var _this = this; return _super[Symbol.replace].call(this, str, function () { var args = arguments; return "object" != (0,esm_typeof/* default */.Z)(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); }); } return _super[Symbol.replace].call(this, str, substitution); }, _wrapRegExp.apply(this, arguments); }
|
|
10225
10261
|
|
|
10226
10262
|
var type = 'reusable-content';
|
|
10227
|
-
var
|
|
10228
|
-
|
|
10263
|
+
var regexp = /*#__PURE__*/_wrapRegExp(/^\s*<([A-Z]\S+)\s*\/>\s*$/, {
|
|
10264
|
+
tag: 1
|
|
10265
|
+
});
|
|
10229
10266
|
var reusableContentTransformer = function reusableContentTransformer() {
|
|
10230
10267
|
var reusableContent = this.data('reusableContent');
|
|
10231
10268
|
return function (tree) {
|
|
10232
|
-
(0,
|
|
10269
|
+
(0,unist_util_visit/* visit */.Vn)(tree, 'html', function (node, index, parent) {
|
|
10233
10270
|
var result = regexp.exec(node.value);
|
|
10234
|
-
if (!result || !result.groups.
|
|
10235
|
-
var
|
|
10271
|
+
if (!result || !result.groups.tag) return;
|
|
10272
|
+
var tag = result.groups.tag;
|
|
10236
10273
|
var block = {
|
|
10237
10274
|
type: type,
|
|
10238
|
-
|
|
10239
|
-
children:
|
|
10275
|
+
tag: tag,
|
|
10276
|
+
children: tag in reusableContent ? reusableContent[tag] : []
|
|
10240
10277
|
};
|
|
10241
10278
|
parent.children[index] = block;
|
|
10242
10279
|
});
|
|
10243
10280
|
return tree;
|
|
10244
10281
|
};
|
|
10245
10282
|
};
|
|
10246
|
-
/* harmony default export */ const
|
|
10283
|
+
/* harmony default export */ const reusable_content = (reusableContentTransformer);
|
|
10247
10284
|
|
|
10248
10285
|
/***/ }),
|
|
10249
10286
|
|
package/dist/main.node.js
CHANGED
|
@@ -9212,8 +9212,8 @@ var reusable_content = __webpack_require__(5772);
|
|
|
9212
9212
|
function ReusableContentCompiler() {
|
|
9213
9213
|
var Compiler = this.Compiler;
|
|
9214
9214
|
var visitors = Compiler.prototype.visitors;
|
|
9215
|
-
visitors[reusable_content/* type */.
|
|
9216
|
-
return "<".concat(
|
|
9215
|
+
visitors[reusable_content/* type */.d] = function (node) {
|
|
9216
|
+
return "<".concat(node.tag, " />");
|
|
9217
9217
|
};
|
|
9218
9218
|
}
|
|
9219
9219
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
@@ -10582,7 +10582,7 @@ var tableCellInlineCode = function tableCellInlineCode() {
|
|
|
10582
10582
|
|
|
10583
10583
|
|
|
10584
10584
|
|
|
10585
|
-
var remarkTransformers = [single_code_tabs, reusable_content/* default */.
|
|
10585
|
+
var remarkTransformers = [single_code_tabs, reusable_content/* default */.Z];
|
|
10586
10586
|
var rehypeTransformers = [table_cell_inline_code];
|
|
10587
10587
|
|
|
10588
10588
|
/***/ }),
|
|
@@ -10592,26 +10592,36 @@ var rehypeTransformers = [table_cell_inline_code];
|
|
|
10592
10592
|
|
|
10593
10593
|
"use strict";
|
|
10594
10594
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10595
|
-
/* harmony export */ "
|
|
10596
|
-
/* harmony export */ "
|
|
10597
|
-
/* harmony export */ "dt": () => (/* binding */ type)
|
|
10595
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
10596
|
+
/* harmony export */ "d": () => (/* binding */ type)
|
|
10598
10597
|
/* harmony export */ });
|
|
10599
|
-
/* harmony import */ var
|
|
10598
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8698);
|
|
10599
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
|
10600
|
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1655);
|
|
10601
|
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__);
|
|
10602
|
+
/* harmony import */ var _babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6015);
|
|
10603
|
+
/* harmony import */ var _babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_2__);
|
|
10604
|
+
/* harmony import */ var unist_util_visit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6393);
|
|
10605
|
+
|
|
10606
|
+
|
|
10607
|
+
|
|
10608
|
+
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(re, groups) { return new BabelRegExp(re, void 0, groups); }; var _super = RegExp.prototype, _groups = new WeakMap(); function BabelRegExp(re, flags, groups) { var _this = new RegExp(re, flags); return _groups.set(_this, groups || _groups.get(re)), _babel_runtime_helpers_setPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(_this, BabelRegExp.prototype); } function buildGroups(result, re) { var g = _groups.get(re); return Object.keys(g).reduce(function (groups, name) { var i = g[name]; if ("number" == typeof i) groups[name] = result[i];else { for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) { k++; } groups[name] = result[i[k]]; } return groups; }, Object.create(null)); } return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default()(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { var result = _super.exec.call(this, str); return result && (result.groups = buildGroups(result, this)), result; }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { if ("string" == typeof substitution) { var groups = _groups.get(this); return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { return "$" + groups[name]; })); } if ("function" == typeof substitution) { var _this = this; return _super[Symbol.replace].call(this, str, function () { var args = arguments; return "object" != _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); }); } return _super[Symbol.replace].call(this, str, substitution); }, _wrapRegExp.apply(this, arguments); }
|
|
10600
10609
|
|
|
10601
10610
|
var type = 'reusable-content';
|
|
10602
|
-
var
|
|
10603
|
-
|
|
10611
|
+
var regexp = /*#__PURE__*/_wrapRegExp(/^\s*<([A-Z]\S+)\s*\/>\s*$/, {
|
|
10612
|
+
tag: 1
|
|
10613
|
+
});
|
|
10604
10614
|
var reusableContentTransformer = function reusableContentTransformer() {
|
|
10605
10615
|
var reusableContent = this.data('reusableContent');
|
|
10606
10616
|
return function (tree) {
|
|
10607
|
-
(0,
|
|
10617
|
+
(0,unist_util_visit__WEBPACK_IMPORTED_MODULE_3__/* .visit */ .Vn)(tree, 'html', function (node, index, parent) {
|
|
10608
10618
|
var result = regexp.exec(node.value);
|
|
10609
|
-
if (!result || !result.groups.
|
|
10610
|
-
var
|
|
10619
|
+
if (!result || !result.groups.tag) return;
|
|
10620
|
+
var tag = result.groups.tag;
|
|
10611
10621
|
var block = {
|
|
10612
10622
|
type: type,
|
|
10613
|
-
|
|
10614
|
-
children:
|
|
10623
|
+
tag: tag,
|
|
10624
|
+
children: tag in reusableContent ? reusableContent[tag] : []
|
|
10615
10625
|
};
|
|
10616
10626
|
parent.children[index] = block;
|
|
10617
10627
|
});
|
package/package.json
CHANGED