@player-ui/markdown-plugin 0.14.2--canary.752.28969 → 0.15.0-next.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/MarkdownPlugin.native.js +9 -4
- package/dist/MarkdownPlugin.native.js.map +1 -1
- package/dist/cjs/index.cjs +6 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.legacy-esm.js +6 -2
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/types.ts +8 -0
- package/src/utils/markdownParser.ts +18 -12
- package/types/types.d.ts +5 -0
|
@@ -5816,10 +5816,13 @@ var MarkdownPlugin = function() {
|
|
|
5816
5816
|
var value = children.map(function(node2) {
|
|
5817
5817
|
var transformer = transformers[node2.type];
|
|
5818
5818
|
if (!transformer) {
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5819
|
+
if (mappers.null) {
|
|
5820
|
+
return mappers === null || mappers === void 0 ? void 0 : mappers.null({
|
|
5821
|
+
originalAsset: asset
|
|
5822
|
+
});
|
|
5823
|
+
} else {
|
|
5824
|
+
return null;
|
|
5825
|
+
}
|
|
5823
5826
|
}
|
|
5824
5827
|
return transformer({
|
|
5825
5828
|
astNode: node2,
|
|
@@ -5827,6 +5830,8 @@ var MarkdownPlugin = function() {
|
|
|
5827
5830
|
mappers: mappers,
|
|
5828
5831
|
transformers: transformers
|
|
5829
5832
|
});
|
|
5833
|
+
}).filter(function(x) {
|
|
5834
|
+
return x !== null;
|
|
5830
5835
|
});
|
|
5831
5836
|
if (value.length === 1) {
|
|
5832
5837
|
var _value = _sliced_to_array(value, 1), first = _value[0];
|