@readme/markdown 6.70.0 → 6.70.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 +6 -0
- package/dist/main.node.js +6 -0
- 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,
|
|
@@ -34697,6 +34698,11 @@ function setup(blocks) {
|
|
|
34697
34698
|
return Component.sanitize && Component.sanitize(opts.sanitize);
|
|
34698
34699
|
});
|
|
34699
34700
|
}
|
|
34701
|
+
|
|
34702
|
+
// normalize magic block linebreaks
|
|
34703
|
+
if (opts.normalize && blocks) {
|
|
34704
|
+
blocks = blocks.replace(/^\[block:/gm, '\n[block:').replace(/^\[\/block\]/gm, '[/block]\n');
|
|
34705
|
+
}
|
|
34700
34706
|
return ["".concat(blocks, "\n\n "), opts];
|
|
34701
34707
|
}
|
|
34702
34708
|
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,
|
|
@@ -34471,6 +34472,11 @@ function setup(blocks) {
|
|
|
34471
34472
|
return Component.sanitize && Component.sanitize(opts.sanitize);
|
|
34472
34473
|
});
|
|
34473
34474
|
}
|
|
34475
|
+
|
|
34476
|
+
// normalize magic block linebreaks
|
|
34477
|
+
if (opts.normalize && blocks) {
|
|
34478
|
+
blocks = blocks.replace(/^\[block:/gm, '\n[block:').replace(/^\[\/block\]/gm, '[/block]\n');
|
|
34479
|
+
}
|
|
34474
34480
|
return ["".concat(blocks, "\n\n "), opts];
|
|
34475
34481
|
}
|
|
34476
34482
|
var utils = {
|
package/package.json
CHANGED