Markdown: th styles in markdownCustomStyles are never applied to table headers

Author: sarmah-rupCreated Sep 29, 2026Updated Sep 29, 2026

What versions are you using? (if relevant)

react-email 6.11.0

Describe the Bug

Custom th styles passed to <Markdown markdownCustomStyles> are never applied to table header cells. Header cells get the td styles instead.

What is affected (leave empty if unsure)

Markdown component

To Reproduce

typescript
<Markdown markdownCustomStyles={{ th: { fontWeight: 'bold' }, td: { color: 'gray' } }}>
{`| Name | Qty |
| ---- | --: |
| Tea  | 2   |`}
</Markdown>

Rendered header: <th style="color:gray">Name</th>

Expected Behavior

<th style="font-weight:bold">Name</th>. th is part of StylesType and has a default in styles.ts, but renderer.tablecell in markdown.tsx always reads finalStyles.td, including for header cells.