Skip to content

Support selecting and copying text within table cells #1100

Open

Description

@kosumic

I'd like to select a piece of text inside a Markdown table cell, such as a command, filename, or phrase, and copy only that selection.

<EnrichedMarkdownText
  flavor="github"
  selectable
  markdown={`
| Service | Details |
| --- | --- |
| API | Restart with systemctl restart api |
`}
/>

Expected behavior: Long-pressing systemctl starts native text selection. I can drag the selection handles to select systemctl restart api and copy just that text.

Current behavior: Long-pressing offers whole-table Copy / Copy as Markdown actions. Individual words or substrings inside cells cannot be selected, even with selectable={true}.

This would be useful in chat interfaces where responses contain tables with commands, paths, identifiers, or longer descriptions.

This request is for text selection within table cells on iOS and Android.

Activity

  1. jnowakow commented on Oct 27, 2026

    @jnowakow
    Collaborator

    Hello @kosumic! Thanks for your engagement in the library development! This would be valuable feature but we'll consider it in the future but at the moment we don't have bandwidth to implement it.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions