Skip to content

Markdown renderer with OPENCODE_EXPERIMENTAL_MARKDOWN is cutting the last row in tables #13539

@shivambaku

Description

@shivambaku

Description

Hi Team,

I noticed that all tables have the last row cut when using the OPENCODE_EXPERIMENTAL_MARKDOWN flag.

Plugins

No response

OpenCode version

1.1.65

Steps to reproduce

  1. Use OPENCODE_EXPERIMENTAL_MARKDOWN=true opencode command at the terminal.
  2. Call any prompt that will output a markdown table. Ex: "Make a table with 3 rows."
  3. You will see that it will only show 2 rows (besides the header). Raw text shows it indeed made 3 rows.

Screenshot and/or share link

## Assistant (Build · claude-sonnet-4.5 · 2.3s)

Here's a table with 3 rows:

| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Row 1    | Data     | Info     |
| Row 2    | Data     | Info     |
| Row 3    | Data     | Info     |
Image

Operating System

macOS 26.2

Terminal

Wezterm

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions