Skip to content

fix: disable lists in table cells - #910

Merged
petyosi merged 2 commits into
mdx-editor:mainfrom
goodforenergy:fix/disable-lists-in-table-cells
Feb 16, 2026
Merged

fix: disable lists in table cells#910
petyosi merged 2 commits into
mdx-editor:mainfrom
goodforenergy:fix/disable-lists-in-table-cells

Conversation

@goodforenergy

@goodforenergy goodforenergy commented Feb 15, 2026

Copy link
Copy Markdown
Contributor

Overview
Tables do not support multi-line content. As such, it would be helpful to disable list creation within tables. Currently, lists appear to work, but if the table is re-rendered with the same markdown, they will disappear.

This PR attempts to fix this by introducing an alternative set of nested editor children that we can exclude plugins from that we don't want running inside tables.

It also ensures the list buttons will be disabled when the cursor is inside a table.

Screen.Recording.2026-02-16.at.11.36.04.mov

@goodforenergy

Copy link
Copy Markdown
Contributor Author

Hey @petyosi - for your consideration. Mostly Claude written, so if you have any suggestions for improvements I'm happy to give them a shot.

@petyosi

petyosi commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

@goodforenergy this makes sense, thank you for the contribution. Claude did get it right.

@petyosi
petyosi merged commit dbcc3fb into mdx-editor:main Feb 16, 2026
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 3.52.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants