Skip to content

Commit

Permalink
fix: markdoc table node (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsladerman authored Sep 30, 2024
1 parent 4397bd2 commit a3e5720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/markdoc/nodes/table.markdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export const table: BaseSchema = {
(child): child is Tag =>
isTag(child) && child?.name.toLowerCase() === 'thead'
)
.children.find(
?.children.find(
(tr): tr is Tag => isTag(tr) && tr?.name.toLowerCase() === 'tr'
)
.children.filter(
?.children.filter(
(th): th is Tag => isTag(th) && th?.name.toLowerCase() === 'th'
)
.map((th) => th.children)
Expand Down

0 comments on commit a3e5720

Please sign in to comment.