Skip to content

fix: Custom start index for ordered lists (#1299), improved support for copy/pasting tables into speadsheets (#1298) - #1311

Closed
areknawo wants to merge 7 commits into
TypeCellOS:mainfrom
areknawo:fix/lists-tables
Closed

areknawo wants to merge 7 commits into
TypeCellOS:mainfrom
areknawo:fix/lists-tables

Conversation

@areknawo

@areknawo areknawo commented Dec 9, 2024 •

Copy link
Copy Markdown
Contributor

This PR:

@vercel

vercel Bot commented Dec 9, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Dec 11, 2024 3:30pm
blocknote-website ✅ Ready (Inspect) Visit Preview Dec 11, 2024 3:30pm

@vercel

vercel Bot commented Dec 9, 2024

Copy link
Copy Markdown

@areknawo is attempting to deploy a commit to the TypeCell Team on Vercel.

A member of the Team first needs to authorize it.

@YousefED YousefED left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like a good start, I see one major bug when creating a list

  1. first item
  2. second item

and then indenting the second item, the index shows as 1.

I also don't think we always want to export the list index to BlockNote JSON format. When I look at basic/block-objects example, now the index is always included. Imo we should only include it if there's an explicit (different from default) "start".

Not sure what the best approach for these two issues is. Perhaps we should keep index as-is, and include a start attribute only when needed?

@YousefED YousefED left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of improvement points:

Discussed on slack:

  • add tests
  • make sure start doesn't show up for non-explicitly set list items

other:

  • when starting a new list with 1., we shouldn't set start=1, as it's the default behavior
  • found one bug with inconsistent data / UX, see recording:
Screen.Recording.2024-12-10.at.09.53.03.mov

This branch was successfully deployed

2 active deployments
Preview – blocknote — 8977e86b Deployed Dec 11, 2024 by vercel[bot]
Preview – blocknote-website — 8977e86b Deployed Dec 11, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants