Skip to content

Fix links inside dynamically updated markdown tables#6601

Open
VedK5643 wants to merge 1 commit into
Textualize:mainfrom
VedK5643:fix/markdown-table-links
Open

Fix links inside dynamically updated markdown tables#6601
VedK5643 wants to merge 1 commit into
Textualize:mainfrom
VedK5643:fix/markdown-table-links

Conversation

@VedK5643

Copy link
Copy Markdown

Thank you for contributing!

Link to issue or discussion

#6597

Summary

Fixes #6597.

When Markdown content is updated dynamically (for example via Markdown.append()), table cells are created using Static instead of MarkdownTableCellContents.

Because Static doesn't implement action_link(), links inside dynamically updated Markdown tables appear interactive but clicking them has no effect.

This change uses MarkdownTableCellContents consistently for dynamically created table cells so that link click events are handled correctly.

Changes

  • Replace Static with MarkdownTableCellContents in the dynamic table rendering path.
  • Add a regression test covering dynamically updated Markdown tables.
  • Verify existing Markdown tests continue to pass.

Testing

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