@readme/markdown 7.6.3 → 7.6.4
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 +3 -1
- package/dist/main.node.js +3 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -65294,10 +65294,12 @@ const readmeToMdx = () => tree => {
|
|
|
65294
65294
|
});
|
|
65295
65295
|
visit(tree, 'figure', (figure, index, parent) => {
|
|
65296
65296
|
const [image, caption] = figure.children;
|
|
65297
|
+
const { align, width } = image.data.hProperties;
|
|
65298
|
+
const border = image.data.hProperties.className === 'border';
|
|
65297
65299
|
parent.children.splice(index, 1, {
|
|
65298
65300
|
type: 'mdxJsxFlowElement',
|
|
65299
65301
|
name: 'Image',
|
|
65300
|
-
attributes: toAttributes(Object.assign(Object.assign({}, image), { border
|
|
65302
|
+
attributes: toAttributes(Object.assign(Object.assign(Object.assign(Object.assign({}, image), { align, width }), (border && { border })), { src: image.src || image.url }), imageAttrs),
|
|
65301
65303
|
children: caption.children,
|
|
65302
65304
|
});
|
|
65303
65305
|
});
|
package/dist/main.node.js
CHANGED
|
@@ -66281,10 +66281,12 @@ const readmeToMdx = () => tree => {
|
|
|
66281
66281
|
});
|
|
66282
66282
|
visit(tree, 'figure', (figure, index, parent) => {
|
|
66283
66283
|
const [image, caption] = figure.children;
|
|
66284
|
+
const { align, width } = image.data.hProperties;
|
|
66285
|
+
const border = image.data.hProperties.className === 'border';
|
|
66284
66286
|
parent.children.splice(index, 1, {
|
|
66285
66287
|
type: 'mdxJsxFlowElement',
|
|
66286
66288
|
name: 'Image',
|
|
66287
|
-
attributes: toAttributes(Object.assign(Object.assign({}, image), { border
|
|
66289
|
+
attributes: toAttributes(Object.assign(Object.assign(Object.assign(Object.assign({}, image), { align, width }), (border && { border })), { src: image.src || image.url }), imageAttrs),
|
|
66288
66290
|
children: caption.children,
|
|
66289
66291
|
});
|
|
66290
66292
|
});
|
package/package.json
CHANGED