Skip to content

fix(mobile): a table inside a list item renders as a table, styled like desktop - #753

Merged
trancong12102 merged 1 commit into
mainfrom
fix/mobile-tables-in-list-items
Nov 24, 2026
Merged

trancong12102 merged 1 commit into
mainfrom
fix/mobile-tables-in-list-items

Conversation

@trancong12102

@trancong12102 trancong12102 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

A markdown table inside a list item rendered on iOS and Android as one run of glued text, with its cells and rows stuck together. The native renderer only splits top-level blocks into views, so a nested table was drawn as inline text.

This moves the mobile app to react-native-enriched-markdown 1.2.0-oni.26 (fork commit c09c93bb):

  • Tables in list items. The renderer splits the list around the table. The table gets its own view, indented under its item's text on the side the text's direction puts it. The list around it keeps its markers, numbers, task checkboxes and gutter width, including an item that opens with a table and nested lists. Copied HTML and Markdown keep the table inside its item.
  • Table style like desktop. With the new table.lines: 'rows', Onicode draws lines between rows only, with no outer box or vertical lines, outer columns flush with the text, and text one step smaller.

The fork change went through seven review rounds and ships with iOS (223), Android (288) and web unit tests. The captures use a replayed sample message.

Before After
Tables in list items (iPad) Before: list tables glued After: list tables
Table style (iPad) Before: grid table After: rows table

Android, after:

Android after

Done by Claude Opus 5.5 in Claude Code (Onicode).

🤖 Generated with Claude Code

…ke desktop

A markdown table nested in a list item ran its cells together as plain text
on iOS and Android: the native renderer only split top-level blocks into
views. enriched-markdown 1.2.0-oni.26 lifts such a table into its own view,
indented under its item, and keeps the list's markers and numbers around it.

Tables now also draw like desktop: lines between rows only, outer columns
flush with the text, text one step smaller (table.lines 'rows').

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@trancong12102
trancong12102 merged commit f631fc7 into main Nov 24, 2026
18 checks passed
@trancong12102
trancong12102 deleted the fix/mobile-tables-in-list-items branch November 24, 2026 14:38
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.

1 participant