Skip to content

Commit

Permalink
Merge branch 'master' into u/jisong/segmentnodes
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuqingSong authored Sep 19, 2023
2 parents 1e47987 + bb96d2e commit 6fe90e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ export function alignTableCell(
return metadata;
});
}

cell.blocks.forEach(block => {
if (block.blockType === 'Paragraph') {
delete block.format.textAlign;
}
});
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ describe('alignTableCell', () => {
expect(table.rows[1].cells[0].cachedElement).toEqual({} as any);
expect(table.rows[1].cells[1].cachedElement).toBeUndefined();
expect(table.rows[1].cells[2].cachedElement).toBeUndefined();
table.rows[0].cells[1].blocks.forEach(block => {
expect(block.format.textAlign).toEqual(undefined);
});
}

it('empty table', () => {
Expand Down

0 comments on commit 6fe90e8

Please sign in to comment.