@manuscripts/transform 3.0.1 → 3.0.2-LEAN-4021.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.
|
@@ -867,8 +867,8 @@ const nodes = [
|
|
|
867
867
|
node: 'table_cell',
|
|
868
868
|
getAttrs: (node) => {
|
|
869
869
|
const element = node;
|
|
870
|
-
const colspan = element.getAttribute('colspan');
|
|
871
|
-
const rowspan = element.getAttribute('rowspan');
|
|
870
|
+
const colspan = parseInt(element.getAttribute('colspan') || '1');
|
|
871
|
+
const rowspan = parseInt(element.getAttribute('rowspan') || '1');
|
|
872
872
|
return Object.assign(Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })), { valign: element.getAttribute('valign'), align: element.getAttribute('align'), scope: element.getAttribute('scope'), style: element.getAttribute('style') });
|
|
873
873
|
},
|
|
874
874
|
},
|
|
@@ -877,8 +877,8 @@ const nodes = [
|
|
|
877
877
|
node: 'table_header',
|
|
878
878
|
getAttrs: (node) => {
|
|
879
879
|
const element = node;
|
|
880
|
-
const colspan = element.getAttribute('colspan');
|
|
881
|
-
const rowspan = element.getAttribute('rowspan');
|
|
880
|
+
const colspan = parseInt(element.getAttribute('colspan') || '1');
|
|
881
|
+
const rowspan = parseInt(element.getAttribute('rowspan') || '1');
|
|
882
882
|
return Object.assign(Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })), { valign: element.getAttribute('valign'), align: element.getAttribute('align'), scope: element.getAttribute('scope'), style: element.getAttribute('style') });
|
|
883
883
|
},
|
|
884
884
|
},
|
package/dist/cjs/version.js
CHANGED
|
@@ -861,8 +861,8 @@ const nodes = [
|
|
|
861
861
|
node: 'table_cell',
|
|
862
862
|
getAttrs: (node) => {
|
|
863
863
|
const element = node;
|
|
864
|
-
const colspan = element.getAttribute('colspan');
|
|
865
|
-
const rowspan = element.getAttribute('rowspan');
|
|
864
|
+
const colspan = parseInt(element.getAttribute('colspan') || '1');
|
|
865
|
+
const rowspan = parseInt(element.getAttribute('rowspan') || '1');
|
|
866
866
|
return Object.assign(Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })), { valign: element.getAttribute('valign'), align: element.getAttribute('align'), scope: element.getAttribute('scope'), style: element.getAttribute('style') });
|
|
867
867
|
},
|
|
868
868
|
},
|
|
@@ -871,8 +871,8 @@ const nodes = [
|
|
|
871
871
|
node: 'table_header',
|
|
872
872
|
getAttrs: (node) => {
|
|
873
873
|
const element = node;
|
|
874
|
-
const colspan = element.getAttribute('colspan');
|
|
875
|
-
const rowspan = element.getAttribute('rowspan');
|
|
874
|
+
const colspan = parseInt(element.getAttribute('colspan') || '1');
|
|
875
|
+
const rowspan = parseInt(element.getAttribute('rowspan') || '1');
|
|
876
876
|
return Object.assign(Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })), { valign: element.getAttribute('valign'), align: element.getAttribute('align'), scope: element.getAttribute('scope'), style: element.getAttribute('style') });
|
|
877
877
|
},
|
|
878
878
|
},
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "3.0.
|
|
1
|
+
export const VERSION = "3.0.2-LEAN-4021.0";
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.
|
|
1
|
+
export declare const VERSION = "3.0.2-LEAN-4021.0";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/transform",
|
|
3
3
|
"description": "ProseMirror transformer for Manuscripts applications",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.2-LEAN-4021.0",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|