md-to-react-email
md-to-react-email copied to clipboard
fix: use correct styles for table header cells (th) vs data cells (td)
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.