@readme/markdown 6.75.0-beta.73 → 6.75.0-beta.75
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 +5 -18
- package/dist/main.node.js +5 -18
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -65251,6 +65251,8 @@ const variables = ({ asMdx } = { asMdx: true }) => tree => {
|
|
|
65251
65251
|
|
|
65252
65252
|
|
|
65253
65253
|
const alignToStyle = (align) => {
|
|
65254
|
+
if (!align)
|
|
65255
|
+
return align;
|
|
65254
65256
|
return {
|
|
65255
65257
|
type: 'mdxJsxAttribute',
|
|
65256
65258
|
name: 'style',
|
|
@@ -65286,12 +65288,7 @@ const visitor = (table, index, parent) => {
|
|
|
65286
65288
|
type: 'mdxJsxFlowElement',
|
|
65287
65289
|
name: 'tr',
|
|
65288
65290
|
children: table.children[0].children.map((cell, index) => {
|
|
65289
|
-
return {
|
|
65290
|
-
type: 'mdxJsxFlowElement',
|
|
65291
|
-
name: 'th',
|
|
65292
|
-
children: cell.children,
|
|
65293
|
-
attributes: [styles[index]],
|
|
65294
|
-
};
|
|
65291
|
+
return Object.assign({ type: 'mdxJsxFlowElement', name: 'th', children: cell.children }, (styles[index] && { attributes: [styles[index]] }));
|
|
65295
65292
|
}),
|
|
65296
65293
|
},
|
|
65297
65294
|
],
|
|
@@ -65304,12 +65301,7 @@ const visitor = (table, index, parent) => {
|
|
|
65304
65301
|
type: 'mdxJsxFlowElement',
|
|
65305
65302
|
name: 'tr',
|
|
65306
65303
|
children: row.children.map((cell, index) => {
|
|
65307
|
-
return {
|
|
65308
|
-
type: 'mdxJsxFlowElement',
|
|
65309
|
-
name: 'th',
|
|
65310
|
-
children: cell.children,
|
|
65311
|
-
attributes: [styles[index]],
|
|
65312
|
-
};
|
|
65304
|
+
return Object.assign({ type: 'mdxJsxFlowElement', name: 'td', children: cell.children }, (styles[index] && { attributes: [styles[index]] }));
|
|
65313
65305
|
}),
|
|
65314
65306
|
};
|
|
65315
65307
|
}),
|
|
@@ -65324,12 +65316,7 @@ const visitor = (table, index, parent) => {
|
|
|
65324
65316
|
},
|
|
65325
65317
|
},
|
|
65326
65318
|
];
|
|
65327
|
-
const jsx = {
|
|
65328
|
-
type: 'mdxJsxFlowElement',
|
|
65329
|
-
name: 'Table',
|
|
65330
|
-
attributes,
|
|
65331
|
-
children: [head, body],
|
|
65332
|
-
};
|
|
65319
|
+
const jsx = Object.assign(Object.assign({ type: 'mdxJsxFlowElement', name: 'Table' }, (table.align.find(a => a) && { attributes })), { children: [head, body] });
|
|
65333
65320
|
// @ts-ignore
|
|
65334
65321
|
parent.children[index] = jsx;
|
|
65335
65322
|
};
|
package/dist/main.node.js
CHANGED
|
@@ -66238,6 +66238,8 @@ const variables = ({ asMdx } = { asMdx: true }) => tree => {
|
|
|
66238
66238
|
|
|
66239
66239
|
|
|
66240
66240
|
const alignToStyle = (align) => {
|
|
66241
|
+
if (!align)
|
|
66242
|
+
return align;
|
|
66241
66243
|
return {
|
|
66242
66244
|
type: 'mdxJsxAttribute',
|
|
66243
66245
|
name: 'style',
|
|
@@ -66273,12 +66275,7 @@ const visitor = (table, index, parent) => {
|
|
|
66273
66275
|
type: 'mdxJsxFlowElement',
|
|
66274
66276
|
name: 'tr',
|
|
66275
66277
|
children: table.children[0].children.map((cell, index) => {
|
|
66276
|
-
return {
|
|
66277
|
-
type: 'mdxJsxFlowElement',
|
|
66278
|
-
name: 'th',
|
|
66279
|
-
children: cell.children,
|
|
66280
|
-
attributes: [styles[index]],
|
|
66281
|
-
};
|
|
66278
|
+
return Object.assign({ type: 'mdxJsxFlowElement', name: 'th', children: cell.children }, (styles[index] && { attributes: [styles[index]] }));
|
|
66282
66279
|
}),
|
|
66283
66280
|
},
|
|
66284
66281
|
],
|
|
@@ -66291,12 +66288,7 @@ const visitor = (table, index, parent) => {
|
|
|
66291
66288
|
type: 'mdxJsxFlowElement',
|
|
66292
66289
|
name: 'tr',
|
|
66293
66290
|
children: row.children.map((cell, index) => {
|
|
66294
|
-
return {
|
|
66295
|
-
type: 'mdxJsxFlowElement',
|
|
66296
|
-
name: 'th',
|
|
66297
|
-
children: cell.children,
|
|
66298
|
-
attributes: [styles[index]],
|
|
66299
|
-
};
|
|
66291
|
+
return Object.assign({ type: 'mdxJsxFlowElement', name: 'td', children: cell.children }, (styles[index] && { attributes: [styles[index]] }));
|
|
66300
66292
|
}),
|
|
66301
66293
|
};
|
|
66302
66294
|
}),
|
|
@@ -66311,12 +66303,7 @@ const visitor = (table, index, parent) => {
|
|
|
66311
66303
|
},
|
|
66312
66304
|
},
|
|
66313
66305
|
];
|
|
66314
|
-
const jsx = {
|
|
66315
|
-
type: 'mdxJsxFlowElement',
|
|
66316
|
-
name: 'Table',
|
|
66317
|
-
attributes,
|
|
66318
|
-
children: [head, body],
|
|
66319
|
-
};
|
|
66306
|
+
const jsx = Object.assign(Object.assign({ type: 'mdxJsxFlowElement', name: 'Table' }, (table.align.find(a => a) && { attributes })), { children: [head, body] });
|
|
66320
66307
|
// @ts-ignore
|
|
66321
66308
|
parent.children[index] = jsx;
|
|
66322
66309
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "6.75.0-beta.
|
|
5
|
+
"version": "6.75.0-beta.75",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|