Skip to content

Commit

Permalink
fix: 修复表格单元格对齐逻辑,确保未定义对齐方式时返回正确值
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Feb 4, 2025
1 parent fc9c2cb commit a272746
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MarkdownEditor/editor/elements/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function TableCell(props: RenderElementProps) {
} else if (align === 'right') {
return 'end';
}
return undefined;
};
return props.element.title ? (
<th {...props.attributes} data-be={'th'}>
Expand Down

0 comments on commit a272746

Please sign in to comment.