Skip to content

Fix links in markdown table rows added via Markdown.append#6630

Open
dobbydobap wants to merge 1 commit into
Textualize:mainfrom
dobbydobap:fix-6597-markdown-table-links
Open

Fix links in markdown table rows added via Markdown.append#6630
dobbydobap wants to merge 1 commit into
Textualize:mainfrom
dobbydobap:fix-6597-markdown-table-links

Conversation

@dobbydobap

Copy link
Copy Markdown

What this does: Table cells mounted by MarkdownTableContent._update_rows (the Markdown.append streaming path) were plain Static widgets, unlike the MarkdownTableCellContents cells created by compose, so links in streamed table rows showed hover styling but ignored clicks. This creates them as MarkdownTableCellContents so link clicks post Markdown.LinkClicked, and matches compose's tooltip handling.

Why: Fixes #6597.

How I tested it: Added a regression test that streams a table via two append calls and clicks a link in an appended row, it fails without the fix and passes with it. Full suite passes locally on Windows (pytest tests/ -n 16 --dist=loadgroup, 3460 passed).

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.

Links inside markdown tables are not clickable

1 participant