Skip to content

[Bug] Table column widths malformatted #4894

Closed

Description

@mrkrsl

Description

Table columns render with little/no regard to the content width. This leads to really wide columns with narrow content (e.g. row numbers) and squashed/narrow columns where there's long content.

Steps to Reproduce

Open a doc with a table that has columns of variable width and marktext will render all columns at roughly the same width.

e.g. here's how an example table renders here in GitHub:

# Short Content
1 Ok A pretty long amount of content that should force this column to render much wider than the first. Though in reality most of my long-column's content will be squished in a narrow space.

Expected Behavior

Markdown tables render columns according to their content width. (Just like GitHub.)

Actual Behavior

But in marktext the same table renders like this:

Image

Screenshots / Logs

No response

Operating System

macOS

MarkText Version

v0.20.0-rc.1

OS Version

macOS 26.1 (25B78)

Reproducibility

  • I can reliably reproduce this issue

Activity

  1. Renakoni commented on Jul 16, 2026

    @Renakoni
    Contributor

    I'd like to take a crack at this,though the final merge might need discussion, as some might prefer the equal-split layout.

  2. Renakoni commented on Jul 17, 2026

    @Renakoni
    Contributor

    I'd like to take a crack at this,though the final merge might need discussion, as some might prefer the equal-split layout.

    Equal width was never an intentional layout choice—it is a genuine bug.

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