Skip to content

Links inside markdown tables are not clickable #6597

Description

@mgesbert

When a link is displayed in a table cell, clicking does nothing, while the UI still hints it should work (display changes when hovered, text is underlined).

For added context, I investigated it with a llm, and the conclusion is the problem must be solve inside textual: "Upstream fix (correct): change _update_rows to instantiate MarkdownTableCellContents instead of Static."

Activity

  1. VedK5643 commented on Jun 26, 2026

    @VedK5643

    Hi! I've submitted a PR that addresses this issue.

    The fix updates the dynamic Markdown table rendering path to use MarkdownTableCellContents instead of Static, allowing link click events to be handled correctly after dynamic updates. It also includes a regression test covering the reported behavior.

    I'd appreciate any feedback. Thanks!

  2. dobbydobap commented on Jul 2, 2026

    @dobbydobap

    Hi! I'd like to work on this if it's free. I traced it to MarkdownTableContent._update_rows, which mounts plain Static cells instead of MarkdownTableCellContents (the shim that forwards link clicks), so cells added during streaming updates lose link handling. Planning to fix that and add a test.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions