Skip to content

Commit

Permalink
Fix table alignment (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdebergue committed Oct 25, 2022
1 parent 7d43305 commit 2552244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReactParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class ReactParser {
const headerRow = this.renderer.tableRow(headerCells);
const header = this.renderer.tableHeader(headerRow);

const bodyChilren = token.rows.map((row, index) => {
const rowChildren = row.map((cell) => {
const bodyChilren = token.rows.map((row) => {
const rowChildren = row.map((cell, index) => {
return this.renderer.tableCell(this.parseInline(cell.tokens), {
header: false,
align: token.align[index],
Expand Down

0 comments on commit 2552244

Please sign in to comment.