Skip to content

Markdown viewer: support raw HTML <table> tags #13726

Open

Description

@fbartho

Pre-submit Checks

Describe the solution you'd like?

Warp's Markdown Viewer should render raw HTML <table>/<thead>/<tbody>/<tr>/<th>/<td> tags as a formatted table, the same subset GitHub renders. To be clear up front: this is not about GFM pipe-syntax tables (| a | b |) — those already render correctly in Warp, gated behind FeatureFlag::MarkdownTables. This is specifically about raw HTML table markup, which authors reach for when they need something pipe syntax can't express, most commonly a <br> inside a cell.

Scope note: this issue covers the un-spanned raw-HTML table subset — simple tables plus <br>-in-cell. colspan/rowspan (merged cells) is tracked separately in #13953, since spanning cells need a non-rectangular grid model that's a substantially larger, independent piece of work. A <td colspan>/<td rowspan> in the input degrades deterministically to a single ordinary cell until #13953 lands — see that issue for merged-cell support.

Expected behavior: the raw HTML table renders as a formatted table, matching the same subset GitHub supports (excluding merged cells, per #13953).

Is your feature request related to a problem? Please describe.

Docs and READMEs that need multi-line cell content drop into raw HTML tables because GFM pipe tables have no syntax for it. Today those raw tables don't render at all in Warp's viewer — they flatten to plain text lines.

Concretely, today in Warp's Markdown Viewer (verified on this build):

Screenshot showing HTML Table rendering as raw code

The raw HTML table renders as literal/flattened text per source line, while a GFM pipe-table with the same data right below it renders as a real formatted table.

Additional context

Test case:

# HTML `<table>` family

Should render: a formatted 2x3 table with a header row, right below a GFM pipe-table with the same data for contrast. Currently: expect the raw HTML tags to render as literal text/flattened lines, while the pipe table below renders as a real table (GFM pipe tables ARE supported, gated behind `FeatureFlag::MarkdownTables`).

Raw HTML table:

<table>
<thead>
<tr><th>Feature</th><th>Status</th></tr>
</thead>
<tbody>
<tr><td>Dark mode</td><td>Shipped</td></tr>
<tr><td>Tabs</td><td>Shipped</td></tr>
<tr><td>AI blocks</td><td>Beta</td></tr>
</tbody>
</table>

GFM pipe-table equivalent (should render as a real table):

| Feature   | Status  |
| --------- | ------- |
| Dark mode | Shipped |
| Tabs      | Shipped |
| AI blocks | Beta    |

Code pointers. As far as I can tell:

  • The repo's own paste-path test, test_unsupported_html_types (crates/markdown_parser/src/html_parser_tests.rs), feeds a full <table><thead>… and asserts it flattens to plain-text lines, with a comment noting the test should be updated "when we eventually support these HTML element types" — which reads as confirmation this is a known, intentional gap rather than an oversight.
  • The only FormattedTable producer in the .md render path is the GFM pipe-syntax parser in markdown_parser.rs (parse_table* functions), gated by FeatureFlag::MarkdownTables (flag defined in crates/warp_features/src/lib.rs, gate checked around crates/editor/src/content/buffer.rs). Raw HTML table tags never reach that code path.
  • On the paste path, html_parser.rs actively unwraps table via TOP_LEVEL_ELEMENT_TAGS_TO_SKIP, and thead/tbody/tr/th/td have no handlers of their own — they fall to the generic recurse-into-children arm.

Related: this splits out one tag from #13652 (bulk raw-HTML-subset request, since closed in favor of per-feature issues). Spec draft #13661 already exists for HTML tables and is being retargeted to this issue rather than closed. colspan/rowspan support is tracked separately as #13953. See also (same rendering subsystem, different asks): #4739 (markdown pipe tables) and #9016 (horizontal scrolling for wide tables). Sibling issues from the same split: #13721 (<img> sizing), #13725 (anchor links), #10259 (<details>/<summary> — pre-existing request), #13732 (<br>), #13733 (<kbd>), #13734 (<sub>/<sup>), #13735 (align on <p>/<div>), #13736 (<picture>/<source>)

Operating system (OS)

macOS

How important is this feature to you?

4

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

No response

Activity

  1. added
    enhancement
    on Jul 14, 2026
  2. warp-for-oss commented on Jul 14, 2026

    @warp-for-oss
    Contributor

    @fbartho

    Here's what I found while triaging this issue:

    This appears to be an unsupported feature gap rather than a regression: Warp currently supports GFM pipe tables, but not raw HTML table markup in the Markdown viewer. The provided test case is sufficient for initial reproduction.

    Maintainer details

    I concluded that feature request to render raw HTML table markup as formatted tables in the Markdown viewer, currently unsupported while GFM pipe tables work..

    Triage summary

    This is a well-scoped enhancement request for the Markdown viewer to render raw HTML <table> markup as a formatted table. The provided fixture is enough to reproduce the current behavior: raw HTML table content is flattened as text while the equivalent GFM pipe table renders as a table.

    Maintainer notes

    • Current Markdown parsing produces FormattedTextLine::Table from GFM pipe tables through parse_table when FeatureFlag::MarkdownTables is enabled in the buffer construction path.
    • Raw HTML table blocks do not have an equivalent parser path that maps table/thead/tbody/tr/th/td into FormattedTable.
    • The HTML paste parser explicitly includes table in TOP_LEVEL_ELEMENT_TAGS_TO_SKIP, and the table section tags fall through to generic child traversal. test_unsupported_html_types currently asserts this flattening behavior with a TODO to update when these HTML element types are supported.
    • Existing table rendering/serialization infrastructure already exists for FormattedTable, so the likely work is parser support plus decisions/tests for the supported raw-HTML subset, especially <br> inside cells and colspan/rowspan.

    Duplicate check

    I enumerated all open issues and recent closed issues. I found related Markdown-viewer/raw-HTML sibling requests (#13721, #13725) and the recently closed umbrella #13652, but not two existing issues matching this exact raw HTML table support request, so I am not marking this as a duplicate.

    Follow-up

    No reporter follow-up is needed for initial triage; the requested behavior, current behavior, and a minimal fixture are all provided.

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Powered by Oz

  3. added
    area:editor-notebooks
    repro:high
    triaged
    on Jul 14, 2026
  4. bnavetta commented on Jul 17, 2026

    @bnavetta
    Contributor

    I'd recommend sequencing this into a few chunks:

    1. Parsing HTML <table> tags into the same representation as GFM tables
    2. Adding support for additional table features, like the ones you called out (multi-line cells and merged cells)
  5. added
    ready-to-spec
    on Jul 17, 2026
  6. removed their assignment
    on Jul 17, 2026
  7. warp-for-oss commented on Jul 17, 2026

    @warp-for-oss
    Contributor

    This issue has been labeled ready-to-spec and is open for contributions in the form of a product or technical spec. If you'd like to draft one, feel free to open a pull request with the spec under specs/. You can also comment @oz-agent on this issue to have the bot draft the spec automatically.

  8. warp-agent-staging commented on Jul 17, 2026

    @warp-agent-staging
    Contributor

    Your GitHub account is not connected to Warp. Connect it here.

  9. added 2 commits that reference this issue on Jul 18, 2026
    e4cca38
    76d0c90
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

    area:editor-notebooksenhancementready-to-specrepro:hightriagedwarp:auto-triage-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions