react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Add support for Table columns & headers

Open wustep opened this issue 11 months ago • 2 comments

Description

Right now, react-notion-x assumes that the first row is always the header, but in Notion you can customize either:

  • no header at all
  • 1st row is header
  • 1st column is header
  • 1st row and first column are headers

This adds support for these, removing the default first-row-as-header.

Notion Test Page ID

https://www.notion.so/wustep/Tables-1495cb08cf2c804f977af6108cbd4fc8

before

CleanShot 2024-11-25 at 15 37 53@2x

localhost w/ changes vs notion prod

CleanShot 2024-11-25 at 15 33 31@2x

wustep avatar Nov 25 '24 20:11 wustep