mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.57k stars 124 forks source link

[BUG] Bulletted list, Numbered list and check list are not working inside tables #511

Closed sanuradhag closed 1 week ago

sanuradhag commented 2 weeks ago

Can not insert a bulleted list, numbered list, or a checklist inside a table cell.

petyosi commented 2 weeks ago

How would that look in markdown? Not sure that the table syntax supports nesting block elements in the table cells.

sanuradhag commented 2 weeks ago

We could do something like this. And we need to include LexicalListPlugin in the TableEditor Component (here) to have lists inside the table cells.And might need to refactor the nested editor's commands to support TAB and ENTER keys.

Screen Shot 2024-06-26 at 09 23 20 AM Screen Shot 2024-06-26 at 09 23 05 AM

petyosi commented 2 weeks ago

But is this a markdown that a vanilla markdown parser (e.g. the GitHub comment box) would understand?

petyosi commented 1 week ago

Closing this. I don't think that block content can be nested in table cells. https://stackoverflow.com/questions/19950648/how-to-write-lists-inside-a-markdown-table