@readme/markdown 6.70.0 → 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 +65 -22
- package/dist/main.node.js +30 -14
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -8505,6 +8505,7 @@ var options = {
|
|
|
8505
8505
|
spacedTable: true,
|
|
8506
8506
|
paddedTable: true
|
|
8507
8507
|
},
|
|
8508
|
+
normalize: true,
|
|
8508
8509
|
lazyImages: true,
|
|
8509
8510
|
reusableContent: {},
|
|
8510
8511
|
safeMode: false,
|
|
@@ -8834,15 +8835,15 @@ var pin_default = /*#__PURE__*/__webpack_require__.n(pin);
|
|
|
8834
8835
|
// EXTERNAL MODULE: ./processor/compile/var.js
|
|
8835
8836
|
var compile_var = __webpack_require__(1067);
|
|
8836
8837
|
var var_default = /*#__PURE__*/__webpack_require__.n(compile_var);
|
|
8837
|
-
// EXTERNAL MODULE: ./processor/transform/reusable-content.js
|
|
8838
|
-
var reusable_content = __webpack_require__(
|
|
8838
|
+
// EXTERNAL MODULE: ./processor/transform/reusable-content.js + 2 modules
|
|
8839
|
+
var reusable_content = __webpack_require__(6462);
|
|
8839
8840
|
;// CONCATENATED MODULE: ./processor/compile/reusable-content.js
|
|
8840
8841
|
|
|
8841
8842
|
function ReusableContentCompiler() {
|
|
8842
8843
|
var Compiler = this.Compiler;
|
|
8843
8844
|
var visitors = Compiler.prototype.visitors;
|
|
8844
|
-
visitors[reusable_content/* type */.
|
|
8845
|
-
return "<".concat(
|
|
8845
|
+
visitors[reusable_content/* type */.d] = function (node) {
|
|
8846
|
+
return "<".concat(node.tag, " />");
|
|
8846
8847
|
};
|
|
8847
8848
|
}
|
|
8848
8849
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
@@ -10132,8 +10133,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10132
10133
|
"remarkTransformers": () => (/* binding */ remarkTransformers)
|
|
10133
10134
|
});
|
|
10134
10135
|
|
|
10135
|
-
// EXTERNAL MODULE: ./processor/transform/reusable-content.js
|
|
10136
|
-
var reusable_content = __webpack_require__(
|
|
10136
|
+
// EXTERNAL MODULE: ./processor/transform/reusable-content.js + 2 modules
|
|
10137
|
+
var reusable_content = __webpack_require__(6462);
|
|
10137
10138
|
// EXTERNAL MODULE: ./node_modules/unist-util-visit/index.js
|
|
10138
10139
|
var unist_util_visit = __webpack_require__(6393);
|
|
10139
10140
|
;// CONCATENATED MODULE: ./processor/transform/single-code-tabs.js
|
|
@@ -10206,43 +10207,80 @@ var tableCellInlineCode = function tableCellInlineCode() {
|
|
|
10206
10207
|
|
|
10207
10208
|
|
|
10208
10209
|
|
|
10209
|
-
var remarkTransformers = [single_code_tabs, reusable_content/* default */.
|
|
10210
|
+
var remarkTransformers = [single_code_tabs, reusable_content/* default */.Z];
|
|
10210
10211
|
var rehypeTransformers = [table_cell_inline_code];
|
|
10211
10212
|
|
|
10212
10213
|
/***/ }),
|
|
10213
10214
|
|
|
10214
|
-
/***/
|
|
10215
|
+
/***/ 6462:
|
|
10215
10216
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10216
10217
|
|
|
10217
10218
|
"use strict";
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
/*
|
|
10223
|
-
|
|
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); }
|
|
10224
10261
|
|
|
10225
10262
|
var type = 'reusable-content';
|
|
10226
|
-
var
|
|
10227
|
-
|
|
10263
|
+
var regexp = /*#__PURE__*/_wrapRegExp(/^\s*<([A-Z]\S+)\s*\/>\s*$/, {
|
|
10264
|
+
tag: 1
|
|
10265
|
+
});
|
|
10228
10266
|
var reusableContentTransformer = function reusableContentTransformer() {
|
|
10229
10267
|
var reusableContent = this.data('reusableContent');
|
|
10230
10268
|
return function (tree) {
|
|
10231
|
-
(0,
|
|
10269
|
+
(0,unist_util_visit/* visit */.Vn)(tree, 'html', function (node, index, parent) {
|
|
10232
10270
|
var result = regexp.exec(node.value);
|
|
10233
|
-
if (!result || !result.groups.
|
|
10234
|
-
var
|
|
10271
|
+
if (!result || !result.groups.tag) return;
|
|
10272
|
+
var tag = result.groups.tag;
|
|
10235
10273
|
var block = {
|
|
10236
10274
|
type: type,
|
|
10237
|
-
|
|
10238
|
-
children:
|
|
10275
|
+
tag: tag,
|
|
10276
|
+
children: tag in reusableContent ? reusableContent[tag] : []
|
|
10239
10277
|
};
|
|
10240
10278
|
parent.children[index] = block;
|
|
10241
10279
|
});
|
|
10242
10280
|
return tree;
|
|
10243
10281
|
};
|
|
10244
10282
|
};
|
|
10245
|
-
/* harmony default export */ const
|
|
10283
|
+
/* harmony default export */ const reusable_content = (reusableContentTransformer);
|
|
10246
10284
|
|
|
10247
10285
|
/***/ }),
|
|
10248
10286
|
|
|
@@ -34697,6 +34735,11 @@ function setup(blocks) {
|
|
|
34697
34735
|
return Component.sanitize && Component.sanitize(opts.sanitize);
|
|
34698
34736
|
});
|
|
34699
34737
|
}
|
|
34738
|
+
|
|
34739
|
+
// normalize magic block linebreaks
|
|
34740
|
+
if (opts.normalize && blocks) {
|
|
34741
|
+
blocks = blocks.replace(/^\[block:/gm, '\n[block:').replace(/^\[\/block\]/gm, '[/block]\n');
|
|
34742
|
+
}
|
|
34700
34743
|
return ["".concat(blocks, "\n\n "), opts];
|
|
34701
34744
|
}
|
|
34702
34745
|
var utils = {
|
package/dist/main.node.js
CHANGED
|
@@ -8873,6 +8873,7 @@ var options = {
|
|
|
8873
8873
|
spacedTable: true,
|
|
8874
8874
|
paddedTable: true
|
|
8875
8875
|
},
|
|
8876
|
+
normalize: true,
|
|
8876
8877
|
lazyImages: true,
|
|
8877
8878
|
reusableContent: {},
|
|
8878
8879
|
safeMode: false,
|
|
@@ -9211,8 +9212,8 @@ var reusable_content = __webpack_require__(5772);
|
|
|
9211
9212
|
function ReusableContentCompiler() {
|
|
9212
9213
|
var Compiler = this.Compiler;
|
|
9213
9214
|
var visitors = Compiler.prototype.visitors;
|
|
9214
|
-
visitors[reusable_content/* type */.
|
|
9215
|
-
return "<".concat(
|
|
9215
|
+
visitors[reusable_content/* type */.d] = function (node) {
|
|
9216
|
+
return "<".concat(node.tag, " />");
|
|
9216
9217
|
};
|
|
9217
9218
|
}
|
|
9218
9219
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
@@ -10581,7 +10582,7 @@ var tableCellInlineCode = function tableCellInlineCode() {
|
|
|
10581
10582
|
|
|
10582
10583
|
|
|
10583
10584
|
|
|
10584
|
-
var remarkTransformers = [single_code_tabs, reusable_content/* default */.
|
|
10585
|
+
var remarkTransformers = [single_code_tabs, reusable_content/* default */.Z];
|
|
10585
10586
|
var rehypeTransformers = [table_cell_inline_code];
|
|
10586
10587
|
|
|
10587
10588
|
/***/ }),
|
|
@@ -10591,26 +10592,36 @@ var rehypeTransformers = [table_cell_inline_code];
|
|
|
10591
10592
|
|
|
10592
10593
|
"use strict";
|
|
10593
10594
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10594
|
-
/* harmony export */ "
|
|
10595
|
-
/* harmony export */ "
|
|
10596
|
-
/* harmony export */ "dt": () => (/* binding */ type)
|
|
10595
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
10596
|
+
/* harmony export */ "d": () => (/* binding */ type)
|
|
10597
10597
|
/* harmony export */ });
|
|
10598
|
-
/* 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); }
|
|
10599
10609
|
|
|
10600
10610
|
var type = 'reusable-content';
|
|
10601
|
-
var
|
|
10602
|
-
|
|
10611
|
+
var regexp = /*#__PURE__*/_wrapRegExp(/^\s*<([A-Z]\S+)\s*\/>\s*$/, {
|
|
10612
|
+
tag: 1
|
|
10613
|
+
});
|
|
10603
10614
|
var reusableContentTransformer = function reusableContentTransformer() {
|
|
10604
10615
|
var reusableContent = this.data('reusableContent');
|
|
10605
10616
|
return function (tree) {
|
|
10606
|
-
(0,
|
|
10617
|
+
(0,unist_util_visit__WEBPACK_IMPORTED_MODULE_3__/* .visit */ .Vn)(tree, 'html', function (node, index, parent) {
|
|
10607
10618
|
var result = regexp.exec(node.value);
|
|
10608
|
-
if (!result || !result.groups.
|
|
10609
|
-
var
|
|
10619
|
+
if (!result || !result.groups.tag) return;
|
|
10620
|
+
var tag = result.groups.tag;
|
|
10610
10621
|
var block = {
|
|
10611
10622
|
type: type,
|
|
10612
|
-
|
|
10613
|
-
children:
|
|
10623
|
+
tag: tag,
|
|
10624
|
+
children: tag in reusableContent ? reusableContent[tag] : []
|
|
10614
10625
|
};
|
|
10615
10626
|
parent.children[index] = block;
|
|
10616
10627
|
});
|
|
@@ -34471,6 +34482,11 @@ function setup(blocks) {
|
|
|
34471
34482
|
return Component.sanitize && Component.sanitize(opts.sanitize);
|
|
34472
34483
|
});
|
|
34473
34484
|
}
|
|
34485
|
+
|
|
34486
|
+
// normalize magic block linebreaks
|
|
34487
|
+
if (opts.normalize && blocks) {
|
|
34488
|
+
blocks = blocks.replace(/^\[block:/gm, '\n[block:').replace(/^\[\/block\]/gm, '[/block]\n');
|
|
34489
|
+
}
|
|
34474
34490
|
return ["".concat(blocks, "\n\n "), opts];
|
|
34475
34491
|
}
|
|
34476
34492
|
var utils = {
|
package/package.json
CHANGED