diff --git a/src/components/elements/markdown/components.ts b/src/components/elements/markdown/components.ts index d641eaea..9fed24ac 100644 --- a/src/components/elements/markdown/components.ts +++ b/src/components/elements/markdown/components.ts @@ -6,7 +6,7 @@ import {renderLink} from './components/link'; import {renderListItem} from './components/listItem'; import {renderParagraph} from './components/paragraph'; import {renderStrong} from './components/strong'; -import {renderTable, renderTableCell, renderTableRow} from './components/table'; +import {renderTable, renderTableCell, renderTableHeader, renderTableRow} from './components/table'; // Key correspondences: @@ -25,6 +25,7 @@ export const components: Components = { h6: renderHeading, strong: renderStrong, table: renderTable, + th: renderTableHeader, tr: renderTableRow, td: renderTableCell, li: renderListItem, diff --git a/src/components/elements/markdown/components/table.tsx b/src/components/elements/markdown/components/table.tsx index 0304610b..b8f90cff 100644 --- a/src/components/elements/markdown/components/table.tsx +++ b/src/components/elements/markdown/components/table.tsx @@ -33,6 +33,14 @@ export const renderTable = ({children, node}: MarkdownComponentProps) => { return