Skip to content

[Bug]: Mobile: <br> in a Markdown table cell is dropped, so lists in cells run together #28865

Closed

Description

@cinderblock

Area

apps/mobile

Steps to reproduce

  1. Have an assistant message render this table:

    | Item | Value |
    | --- | --- |
    | Completed | • First item<br>• Second item<br>• Third item |
  2. Open the same thread in the desktop app and the iOS app.

Desktop shows a list; iOS shows a run-on paragraph.

Expected behavior

Each <br> starts a new line in the cell, as it does on desktop and in GitHub's own Markdown rendering. The three items appear on three lines.

Image

Actual behavior

On iOS the items run together on one wrapped line: • First item • Second item • Third item.

Image

The cause looks intentional. apps/mobile/src/lib/markdownDocument.ts rewrites the tag to a space because a real newline would end the table row:

// A line break would end the table row, so a cell keeps its content on one line.
if (/^<br\b/i.test(tag)) return options.inTableCell ? " " : "  \n";

That protects the row, but the break is lost. A fix would need a way to carry a line break inside a cell through to the native renderer.

Impact

Minor bug or occasional failure

Version or commit

iOS app v2.2.0, server 0.1.3

Environment

iOS app connected to a Windows server. Tested on iOS only; the rewrite is in shared mobile code, so Android is probably affected too.

Workaround

None on the reader's side. An author can avoid <br> in table cells.

Activity

  1. juliusmarminge commented on Nov 9, 2026

    @juliusmarminge
    Member

    Fixed by #29355 in 9f2bb98, which preserves line breaks in mobile Markdown table cells. Thanks for the clear report!

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