md-to-react-email icon indicating copy to clipboard operation
md-to-react-email copied to clipboard

fix: use correct styles for table header cells (th) vs data cells (td)

Open Astatine-213-Tian opened this issue 4 months ago • 0 comments
trafficstars

Previously, both ⁠<th> (header) and ⁠<td> (data) table cells were rendered using ⁠finalStyles.td, which meant header cell styles were ignored. This PR updates the table cell renderer to check if the cell is a header or data cell, and applies the correct styles:

  • Header cells (⁠<th>) now use ⁠finalStyles.th
  • Data cells (⁠<td>) use ⁠finalStyles.td

This ensures that custom header styles are properly applied and not overridden by data cell styles.

Astatine-213-Tian avatar Jul 08 '25 07:07 Astatine-213-Tian