@readme/markdown 6.69.0 → 6.70.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 +18 -18
- package/dist/main.node.js +18 -18
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -8718,8 +8718,8 @@ var break_default = /*#__PURE__*/__webpack_require__.n(compile_break);
|
|
|
8718
8718
|
var code_tabs = __webpack_require__(4079);
|
|
8719
8719
|
var code_tabs_default = /*#__PURE__*/__webpack_require__.n(code_tabs);
|
|
8720
8720
|
;// CONCATENATED MODULE: ./processor/compile/magic-block.js
|
|
8721
|
-
var magicBlock = function magicBlock(type, data) {
|
|
8722
|
-
return "[block:".concat(type, "]").concat(JSON.stringify(data), "[/block]");
|
|
8721
|
+
var magicBlock = function magicBlock(type, data, parent) {
|
|
8722
|
+
return parent.type === 'root' ? "[block:".concat(type, "]\n").concat(JSON.stringify(data, null, 2), "\n[/block]\n") : "[block:".concat(type, "]").concat(JSON.stringify(data), "[/block]");
|
|
8723
8723
|
};
|
|
8724
8724
|
/* harmony default export */ const magic_block = (magicBlock);
|
|
8725
8725
|
;// CONCATENATED MODULE: ./processor/compile/div.js
|
|
@@ -8727,9 +8727,9 @@ var magicBlock = function magicBlock(type, data) {
|
|
|
8727
8727
|
function DivCompiler() {
|
|
8728
8728
|
var Compiler = this.Compiler;
|
|
8729
8729
|
var visitors = Compiler.prototype.visitors;
|
|
8730
|
-
visitors.div = function compile(node) {
|
|
8730
|
+
visitors.div = function compile(node, parent) {
|
|
8731
8731
|
var data = node.data.hProperties;
|
|
8732
|
-
return magic_block(node.data.hName, data);
|
|
8732
|
+
return magic_block(node.data.hName, data, parent);
|
|
8733
8733
|
};
|
|
8734
8734
|
}
|
|
8735
8735
|
// EXTERNAL MODULE: ./processor/compile/escape.js
|
|
@@ -8767,7 +8767,7 @@ var compileImage = function compileImage(image) {
|
|
|
8767
8767
|
function FigureCompiler() {
|
|
8768
8768
|
var Compiler = this.Compiler;
|
|
8769
8769
|
var visitors = Compiler.prototype.visitors;
|
|
8770
|
-
visitors.figure = function figureCompiler(node) {
|
|
8770
|
+
visitors.figure = function figureCompiler(node, parent) {
|
|
8771
8771
|
var image;
|
|
8772
8772
|
var caption;
|
|
8773
8773
|
if (node.children) {
|
|
@@ -8782,7 +8782,7 @@ function FigureCompiler() {
|
|
|
8782
8782
|
var block = {
|
|
8783
8783
|
images: [img]
|
|
8784
8784
|
};
|
|
8785
|
-
return magic_block('image', block);
|
|
8785
|
+
return magic_block('image', block, parent);
|
|
8786
8786
|
};
|
|
8787
8787
|
}
|
|
8788
8788
|
;// CONCATENATED MODULE: ./processor/compile/html-block.js
|
|
@@ -8790,11 +8790,11 @@ function FigureCompiler() {
|
|
|
8790
8790
|
function HtmlBlockCompiler() {
|
|
8791
8791
|
var Compiler = this.Compiler;
|
|
8792
8792
|
var visitors = Compiler.prototype.visitors;
|
|
8793
|
-
visitors['html-block'] = function (node) {
|
|
8793
|
+
visitors['html-block'] = function (node, parent) {
|
|
8794
8794
|
var html = node.data.hProperties.html;
|
|
8795
8795
|
return magic_block('html', {
|
|
8796
8796
|
html: html
|
|
8797
|
-
});
|
|
8797
|
+
}, parent);
|
|
8798
8798
|
};
|
|
8799
8799
|
}
|
|
8800
8800
|
// EXTERNAL MODULE: ./processor/compile/i.js
|
|
@@ -8811,14 +8811,14 @@ var callout_default = /*#__PURE__*/__webpack_require__.n(callout);
|
|
|
8811
8811
|
function embed_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; }
|
|
8812
8812
|
function embed_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? embed_ownKeys(Object(source), !0).forEach(function (key) { (0,defineProperty/* default */.Z)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : embed_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8813
8813
|
|
|
8814
|
-
function EmbedCompiler(node) {
|
|
8814
|
+
function EmbedCompiler(node, parent) {
|
|
8815
8815
|
var data = node.data.hProperties;
|
|
8816
8816
|
var _data$provider = data.provider,
|
|
8817
8817
|
provider = _data$provider === void 0 ? 'embed' : _data$provider;
|
|
8818
8818
|
provider = provider.replace(/^@/, '');
|
|
8819
8819
|
return magic_block('embed', embed_objectSpread(embed_objectSpread({}, data), {}, {
|
|
8820
8820
|
provider: provider
|
|
8821
|
-
}));
|
|
8821
|
+
}), parent);
|
|
8822
8822
|
}
|
|
8823
8823
|
function EmbedCompilerPlugin() {
|
|
8824
8824
|
var Compiler = this.Compiler;
|
|
@@ -8842,7 +8842,7 @@ function ReusableContentCompiler() {
|
|
|
8842
8842
|
var Compiler = this.Compiler;
|
|
8843
8843
|
var visitors = Compiler.prototype.visitors;
|
|
8844
8844
|
visitors[reusable_content/* type */.dt] = function (node) {
|
|
8845
|
-
return "<".concat(reusable_content/* tag */._q, "
|
|
8845
|
+
return "<".concat(reusable_content/* tag */._q, " slug=\"").concat(node.slug, "\" />");
|
|
8846
8846
|
};
|
|
8847
8847
|
}
|
|
8848
8848
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
@@ -8861,7 +8861,7 @@ function TableCompiler() {
|
|
|
8861
8861
|
var Compiler = this.Compiler;
|
|
8862
8862
|
var visitors = Compiler.prototype.visitors;
|
|
8863
8863
|
var original = visitors.table;
|
|
8864
|
-
visitors.table = function (node) {
|
|
8864
|
+
visitors.table = function (node, parent) {
|
|
8865
8865
|
var _node$children$,
|
|
8866
8866
|
_node$children$$child,
|
|
8867
8867
|
_this = this;
|
|
@@ -8883,7 +8883,7 @@ function TableCompiler() {
|
|
|
8883
8883
|
data.data["".concat(col, "-").concat(j)] = string;
|
|
8884
8884
|
});
|
|
8885
8885
|
});
|
|
8886
|
-
return magic_block('parameters', data);
|
|
8886
|
+
return magic_block('parameters', data, parent);
|
|
8887
8887
|
};
|
|
8888
8888
|
}
|
|
8889
8889
|
// EXTERNAL MODULE: ./processor/compile/table-head.js
|
|
@@ -10224,18 +10224,18 @@ var rehypeTransformers = [table_cell_inline_code];
|
|
|
10224
10224
|
|
|
10225
10225
|
var type = 'reusable-content';
|
|
10226
10226
|
var tag = 'RMReusableContent';
|
|
10227
|
-
var regexp = new RegExp("^\\s*<".concat(tag, "
|
|
10227
|
+
var regexp = new RegExp("^\\s*<".concat(tag, " slug=\"(?<slug>.*)\" />\\s*$"));
|
|
10228
10228
|
var reusableContentTransformer = function reusableContentTransformer() {
|
|
10229
10229
|
var reusableContent = this.data('reusableContent');
|
|
10230
10230
|
return function (tree) {
|
|
10231
10231
|
(0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__/* .visit */ .Vn)(tree, 'html', function (node, index, parent) {
|
|
10232
10232
|
var result = regexp.exec(node.value);
|
|
10233
|
-
if (!result || !result.groups.
|
|
10234
|
-
var
|
|
10233
|
+
if (!result || !result.groups.slug) return;
|
|
10234
|
+
var slug = result.groups.slug;
|
|
10235
10235
|
var block = {
|
|
10236
10236
|
type: type,
|
|
10237
|
-
|
|
10238
|
-
children:
|
|
10237
|
+
slug: slug,
|
|
10238
|
+
children: slug in reusableContent ? reusableContent[slug] : []
|
|
10239
10239
|
};
|
|
10240
10240
|
parent.children[index] = block;
|
|
10241
10241
|
});
|
package/dist/main.node.js
CHANGED
|
@@ -9086,8 +9086,8 @@ var break_default = /*#__PURE__*/__webpack_require__.n(compile_break);
|
|
|
9086
9086
|
var code_tabs = __webpack_require__(4079);
|
|
9087
9087
|
var code_tabs_default = /*#__PURE__*/__webpack_require__.n(code_tabs);
|
|
9088
9088
|
;// CONCATENATED MODULE: ./processor/compile/magic-block.js
|
|
9089
|
-
var magicBlock = function magicBlock(type, data) {
|
|
9090
|
-
return "[block:".concat(type, "]").concat(JSON.stringify(data), "[/block]");
|
|
9089
|
+
var magicBlock = function magicBlock(type, data, parent) {
|
|
9090
|
+
return parent.type === 'root' ? "[block:".concat(type, "]\n").concat(JSON.stringify(data, null, 2), "\n[/block]\n") : "[block:".concat(type, "]").concat(JSON.stringify(data), "[/block]");
|
|
9091
9091
|
};
|
|
9092
9092
|
/* harmony default export */ const magic_block = (magicBlock);
|
|
9093
9093
|
;// CONCATENATED MODULE: ./processor/compile/div.js
|
|
@@ -9095,9 +9095,9 @@ var magicBlock = function magicBlock(type, data) {
|
|
|
9095
9095
|
function DivCompiler() {
|
|
9096
9096
|
var Compiler = this.Compiler;
|
|
9097
9097
|
var visitors = Compiler.prototype.visitors;
|
|
9098
|
-
visitors.div = function compile(node) {
|
|
9098
|
+
visitors.div = function compile(node, parent) {
|
|
9099
9099
|
var data = node.data.hProperties;
|
|
9100
|
-
return magic_block(node.data.hName, data);
|
|
9100
|
+
return magic_block(node.data.hName, data, parent);
|
|
9101
9101
|
};
|
|
9102
9102
|
}
|
|
9103
9103
|
// EXTERNAL MODULE: ./processor/compile/escape.js
|
|
@@ -9137,7 +9137,7 @@ var compileImage = function compileImage(image) {
|
|
|
9137
9137
|
function FigureCompiler() {
|
|
9138
9138
|
var Compiler = this.Compiler;
|
|
9139
9139
|
var visitors = Compiler.prototype.visitors;
|
|
9140
|
-
visitors.figure = function figureCompiler(node) {
|
|
9140
|
+
visitors.figure = function figureCompiler(node, parent) {
|
|
9141
9141
|
var image;
|
|
9142
9142
|
var caption;
|
|
9143
9143
|
if (node.children) {
|
|
@@ -9152,7 +9152,7 @@ function FigureCompiler() {
|
|
|
9152
9152
|
var block = {
|
|
9153
9153
|
images: [img]
|
|
9154
9154
|
};
|
|
9155
|
-
return magic_block('image', block);
|
|
9155
|
+
return magic_block('image', block, parent);
|
|
9156
9156
|
};
|
|
9157
9157
|
}
|
|
9158
9158
|
;// CONCATENATED MODULE: ./processor/compile/html-block.js
|
|
@@ -9160,11 +9160,11 @@ function FigureCompiler() {
|
|
|
9160
9160
|
function HtmlBlockCompiler() {
|
|
9161
9161
|
var Compiler = this.Compiler;
|
|
9162
9162
|
var visitors = Compiler.prototype.visitors;
|
|
9163
|
-
visitors['html-block'] = function (node) {
|
|
9163
|
+
visitors['html-block'] = function (node, parent) {
|
|
9164
9164
|
var html = node.data.hProperties.html;
|
|
9165
9165
|
return magic_block('html', {
|
|
9166
9166
|
html: html
|
|
9167
|
-
});
|
|
9167
|
+
}, parent);
|
|
9168
9168
|
};
|
|
9169
9169
|
}
|
|
9170
9170
|
// EXTERNAL MODULE: ./processor/compile/i.js
|
|
@@ -9181,14 +9181,14 @@ var callout_default = /*#__PURE__*/__webpack_require__.n(callout);
|
|
|
9181
9181
|
function embed_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; }
|
|
9182
9182
|
function embed_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? embed_ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : embed_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9183
9183
|
|
|
9184
|
-
function EmbedCompiler(node) {
|
|
9184
|
+
function EmbedCompiler(node, parent) {
|
|
9185
9185
|
var data = node.data.hProperties;
|
|
9186
9186
|
var _data$provider = data.provider,
|
|
9187
9187
|
provider = _data$provider === void 0 ? 'embed' : _data$provider;
|
|
9188
9188
|
provider = provider.replace(/^@/, '');
|
|
9189
9189
|
return magic_block('embed', embed_objectSpread(embed_objectSpread({}, data), {}, {
|
|
9190
9190
|
provider: provider
|
|
9191
|
-
}));
|
|
9191
|
+
}), parent);
|
|
9192
9192
|
}
|
|
9193
9193
|
function EmbedCompilerPlugin() {
|
|
9194
9194
|
var Compiler = this.Compiler;
|
|
@@ -9212,7 +9212,7 @@ function ReusableContentCompiler() {
|
|
|
9212
9212
|
var Compiler = this.Compiler;
|
|
9213
9213
|
var visitors = Compiler.prototype.visitors;
|
|
9214
9214
|
visitors[reusable_content/* type */.dt] = function (node) {
|
|
9215
|
-
return "<".concat(reusable_content/* tag */._q, "
|
|
9215
|
+
return "<".concat(reusable_content/* tag */._q, " slug=\"").concat(node.slug, "\" />");
|
|
9216
9216
|
};
|
|
9217
9217
|
}
|
|
9218
9218
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
@@ -9232,7 +9232,7 @@ function TableCompiler() {
|
|
|
9232
9232
|
var Compiler = this.Compiler;
|
|
9233
9233
|
var visitors = Compiler.prototype.visitors;
|
|
9234
9234
|
var original = visitors.table;
|
|
9235
|
-
visitors.table = function (node) {
|
|
9235
|
+
visitors.table = function (node, parent) {
|
|
9236
9236
|
var _node$children$,
|
|
9237
9237
|
_node$children$$child,
|
|
9238
9238
|
_this = this;
|
|
@@ -9254,7 +9254,7 @@ function TableCompiler() {
|
|
|
9254
9254
|
data.data["".concat(col, "-").concat(j)] = string;
|
|
9255
9255
|
});
|
|
9256
9256
|
});
|
|
9257
|
-
return magic_block('parameters', data);
|
|
9257
|
+
return magic_block('parameters', data, parent);
|
|
9258
9258
|
};
|
|
9259
9259
|
}
|
|
9260
9260
|
// EXTERNAL MODULE: ./processor/compile/table-head.js
|
|
@@ -10599,18 +10599,18 @@ var rehypeTransformers = [table_cell_inline_code];
|
|
|
10599
10599
|
|
|
10600
10600
|
var type = 'reusable-content';
|
|
10601
10601
|
var tag = 'RMReusableContent';
|
|
10602
|
-
var regexp = new RegExp("^\\s*<".concat(tag, "
|
|
10602
|
+
var regexp = new RegExp("^\\s*<".concat(tag, " slug=\"(?<slug>.*)\" />\\s*$"));
|
|
10603
10603
|
var reusableContentTransformer = function reusableContentTransformer() {
|
|
10604
10604
|
var reusableContent = this.data('reusableContent');
|
|
10605
10605
|
return function (tree) {
|
|
10606
10606
|
(0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__/* .visit */ .Vn)(tree, 'html', function (node, index, parent) {
|
|
10607
10607
|
var result = regexp.exec(node.value);
|
|
10608
|
-
if (!result || !result.groups.
|
|
10609
|
-
var
|
|
10608
|
+
if (!result || !result.groups.slug) return;
|
|
10609
|
+
var slug = result.groups.slug;
|
|
10610
10610
|
var block = {
|
|
10611
10611
|
type: type,
|
|
10612
|
-
|
|
10613
|
-
children:
|
|
10612
|
+
slug: slug,
|
|
10613
|
+
children: slug in reusableContent ? reusableContent[slug] : []
|
|
10614
10614
|
};
|
|
10615
10615
|
parent.children[index] = block;
|
|
10616
10616
|
});
|
package/package.json
CHANGED