Skip to content

[Bug]: Mobile: Markdown tables nested inside list items collapse on iOS and disappear on Android #42511

Backlog

Description

@Nexxol

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. Have an agent reply with a Markdown table nested inside a bullet or ordered list item (with or without a blank line before the table):

    - **Deployment summary:**
    
      | Service | Status | Region |
      | --- | --- | --- |
      | `api` | `ok` | `us-east` |
      | `worker` | `ok` | `eu-west` |

    (The no-blank-line form - **Deployment summary:**\n | Service | ... | hits the exact same path because markdownWithTableBreaks in apps/mobile/src/lib/markdownDocument.ts inserts a blank line while preserving the list indentation.)

  2. Open the thread in the T3 Code mobile app.

Expected behavior

The nested table renders as a readable table, as it does on web and desktop (and as top-level tables and standalone blockquote tables already do on mobile).

Actual behavior

  • iOS (observed on device): The pipes are parsed away and every header and body cell is concatenated into a single unspaced run-on string inside the list item (ServiceStatusRegionapiokus-eastworkerokeu-west).
  • Android (traced in vendored renderer + upstream report): The table is omitted completely.

Cause

Both native platforms in the vendored react-native-enriched-markdown-1.2.0-t3.18 (apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.18-16db4c75.tgz) only promote Table nodes that are direct children of the document or a blockquote into native table segments:

  • iOS: ENRMSplitASTIntoSegments (ios/segments/SegmentRenderer.m) keeps lists inside an ENRMTextSegment. ListItemRenderer.m delegates to RendererFactory.m (renderChildrenOfNode), which has no renderers for table/row/cell nodes and recurses through their children without inserting separators.
  • Android: splitASTIntoSegments (segments/MarkdownSegment.kt) uses the same direct-child rule. ListItemRenderer.kt falls back to TextRenderer (renderer/NodeRenderer.kt), which reads the table node's empty content and returns without visiting cells.

Related:

Impact

Minor bug or occasional failure

Version or commit

main @ 617d6ab628dee5952f225bd7d8e73d43dab3d4af (react-native-enriched-markdown-1.2.0-t3.18-16db4c75.tgz)

Environment

iOS app (observed on device); Android behavior traced in the vendored native renderer and confirmed in upstream #925.

Workaround

Place Markdown tables at top level (outside list items) rather than indented under a bullet or numbered item.


Drafted with Gemini 4 Neon (Antigravity) and verified with GPT-6.2 Sol (Codex) in T3 Code.

Activity

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