@readme/markdown 11.1.0 → 11.1.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 -2
- package/dist/main.node.js +2 -2
- package/dist/main.node.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -67634,7 +67634,7 @@ const readmeToMdx = () => tree => {
|
|
|
67634
67634
|
return;
|
|
67635
67635
|
if ('url' in image)
|
|
67636
67636
|
image.data.hProperties.src = image.url;
|
|
67637
|
-
const attributes = toAttributes(image.data.hProperties, imageAttrs);
|
|
67637
|
+
const attributes = toAttributes({ ...image, ...image.data.hProperties }, imageAttrs);
|
|
67638
67638
|
if (image.data.hProperties.className === 'emoji') {
|
|
67639
67639
|
parent.children.splice(index, 1, {
|
|
67640
67640
|
type: NodeTypes.emoji,
|
|
@@ -67652,7 +67652,7 @@ const readmeToMdx = () => tree => {
|
|
|
67652
67652
|
}
|
|
67653
67653
|
});
|
|
67654
67654
|
visit(tree, NodeTypes.imageBlock, (image, index, parent) => {
|
|
67655
|
-
const attributes = toAttributes(image.data.hProperties, imageAttrs);
|
|
67655
|
+
const attributes = toAttributes({ ...image, ...image.data.hProperties }, imageAttrs);
|
|
67656
67656
|
if (hasExtra(attributes)) {
|
|
67657
67657
|
parent.children.splice(index, 1, {
|
|
67658
67658
|
type: 'mdxJsxFlowElement',
|
package/dist/main.node.js
CHANGED
|
@@ -87837,7 +87837,7 @@ const readmeToMdx = () => tree => {
|
|
|
87837
87837
|
return;
|
|
87838
87838
|
if ('url' in image)
|
|
87839
87839
|
image.data.hProperties.src = image.url;
|
|
87840
|
-
const attributes = toAttributes(image.data.hProperties, imageAttrs);
|
|
87840
|
+
const attributes = toAttributes({ ...image, ...image.data.hProperties }, imageAttrs);
|
|
87841
87841
|
if (image.data.hProperties.className === 'emoji') {
|
|
87842
87842
|
parent.children.splice(index, 1, {
|
|
87843
87843
|
type: NodeTypes.emoji,
|
|
@@ -87855,7 +87855,7 @@ const readmeToMdx = () => tree => {
|
|
|
87855
87855
|
}
|
|
87856
87856
|
});
|
|
87857
87857
|
visit(tree, NodeTypes.imageBlock, (image, index, parent) => {
|
|
87858
|
-
const attributes = toAttributes(image.data.hProperties, imageAttrs);
|
|
87858
|
+
const attributes = toAttributes({ ...image, ...image.data.hProperties }, imageAttrs);
|
|
87859
87859
|
if (hasExtra(attributes)) {
|
|
87860
87860
|
parent.children.splice(index, 1, {
|
|
87861
87861
|
type: 'mdxJsxFlowElement',
|