Repository navigation
Description
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
-
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 becausemarkdownWithTableBreaksinapps/mobile/src/lib/markdownDocument.tsinserts a blank line while preserving the list indentation.) -
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 anENRMTextSegment.ListItemRenderer.mdelegates toRendererFactory.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.ktfalls back toTextRenderer(renderer/NodeRenderer.kt), which reads the table node's emptycontentand returns without visiting cells.
Related:
- Upstream issue: Block elements nested in a list item lose their block renderer (flavor="github"): tables collapse to text, code blocks and math lose horizontal scrolling software-mansion/enriched-markdown#925
- Same list-segmentation constraint in T3 Code: [Bug]: iOS code blocks inside list items have no copy button #34543
- Prior table-break normalization that preserves list indentation: [Bug][Mobile]: A table right after a line of text renders as a run-on paragraph #20115 / fix(mobile): a table right under a line of text renders as a table #20120
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