@readme/markdown 6.87.0 → 6.87.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 +2 -1
- package/dist/main.node.js +2 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -10550,6 +10550,7 @@ var STRIP_TAGS = ['script', 'style'];
|
|
|
10550
10550
|
function one(node, context) {
|
|
10551
10551
|
if (STRIP_TAGS.includes(node.tagName)) return '';
|
|
10552
10552
|
if (node.tagName === 'html-block') {
|
|
10553
|
+
if (!node.properties.html) return '';
|
|
10553
10554
|
return all(hast(node.properties.html), context);
|
|
10554
10555
|
}
|
|
10555
10556
|
if (node.tagName === 'rdme-callout') {
|
|
@@ -10590,7 +10591,7 @@ function all(node, context) {
|
|
|
10590
10591
|
var result = [];
|
|
10591
10592
|
|
|
10592
10593
|
// eslint-disable-next-line no-plusplus
|
|
10593
|
-
while (++index < node.children.length) {
|
|
10594
|
+
while (++index < (node === null || node === void 0 ? void 0 : node.children.length)) {
|
|
10594
10595
|
result[index] = one(node.children[index], context);
|
|
10595
10596
|
}
|
|
10596
10597
|
return result.join(' ');
|
package/dist/main.node.js
CHANGED
|
@@ -10903,6 +10903,7 @@ var STRIP_TAGS = ['script', 'style'];
|
|
|
10903
10903
|
function one(node, context) {
|
|
10904
10904
|
if (STRIP_TAGS.includes(node.tagName)) return '';
|
|
10905
10905
|
if (node.tagName === 'html-block') {
|
|
10906
|
+
if (!node.properties.html) return '';
|
|
10906
10907
|
return all(hast(node.properties.html), context);
|
|
10907
10908
|
}
|
|
10908
10909
|
if (node.tagName === 'rdme-callout') {
|
|
@@ -10943,7 +10944,7 @@ function all(node, context) {
|
|
|
10943
10944
|
var result = [];
|
|
10944
10945
|
|
|
10945
10946
|
// eslint-disable-next-line no-plusplus
|
|
10946
|
-
while (++index < node.children.length) {
|
|
10947
|
+
while (++index < (node === null || node === void 0 ? void 0 : node.children.length)) {
|
|
10947
10948
|
result[index] = one(node.children[index], context);
|
|
10948
10949
|
}
|
|
10949
10950
|
return result.join(' ');
|
package/package.json
CHANGED