Skip to content

fix(feishu): convert markdown tables to bullet lists instead of raw text - #29510

Closed
nasymonk wants to merge 1 commit into
NousResearch:mainfrom
nasymonk:fix/feishu-markdown-tables
Closed

fix(feishu): convert markdown tables to bullet lists instead of raw text#29510
nasymonk wants to merge 1 commit into
NousResearch:mainfrom
nasymonk:fix/feishu-markdown-tables

Conversation

@nasymonk

Copy link
Copy Markdown

Summary

Feishu's post-type md elements don't render markdown tables. The previous code detected tables and fell back to plain text mode, sending raw pipe characters — completely unreadable.

Fix

Instead of falling back to plain text, convert markdown tables to a readable bullet-list format with bold headers:

Before (raw pipes in text mode):

| Name  | Score | Grade |
|-------|-------|-------|
| Alice | 95    | A     |

After (bullet list in post/md mode):

- **Name**: Alice | **Score**: 95 | **Grade**: A

This preserves the data structure in a Feishu-friendly format while keeping the rest of the message in post/md mode for proper Markdown rendering (bold, code, links, etc.).

Fixes #29245

Feishu's post-type 'md' elements don't render markdown tables. The
previous code detected tables and fell back to plain 'text' mode,
which sent raw pipe characters (unreadable).

Instead, convert markdown tables to a readable bullet-list format:
  - **Name**: Alice | **Score**: 95
  - **Name**: Bob | **Score**: 87

This preserves the data structure in a Feishu-friendly format while
keeping the rest of the message in post/md mode for proper rendering.

Fixes #29245
@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery platform/feishu Feishu / Lark adapter P2 Medium — degraded but workaround exists labels May 20, 2026
@nasymonk nasymonk closed this by deleting the head repository Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/feishu Feishu / Lark adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feishu gateway: Markdown tables render as broken plain text

2 participants