Skip to content

fix(feishu): render markdown tables via cards#28837

Open
Rocky-Y008 wants to merge 1 commit into
NousResearch:mainfrom
Rocky-Y008:fix/feishu-markdown-table-rendering
Open

fix(feishu): render markdown tables via cards#28837
Rocky-Y008 wants to merge 1 commit into
NousResearch:mainfrom
Rocky-Y008:fix/feishu-markdown-table-rendering

Conversation

@Rocky-Y008

Copy link
Copy Markdown

Summary

  • route Feishu/Lark markdown replies containing GFM-style tables to Card JSON 2.0 interactive messages
  • render table rows as CardKit table elements instead of forcing the whole reply to plain text
  • keep non-table markdown replies on the existing post-message path
  • add regression coverage for table detection/routing and regular markdown behavior

Motivation

Feishu post messages do not reliably render Markdown tables. The previous workaround forced any reply containing a table to plain text, which preserved the raw content but stripped normal Markdown formatting and left tables unrendered.

This keeps the existing post path for normal Markdown while using an interactive card only when a markdown table is detected.

Fixes #25452
Refs #23938, #27469, #26658, #27695

Test plan

python -m pytest tests/gateway/test_feishu.py -q

Result locally:

200 passed, 2 warnings

Route Feishu markdown replies containing tables to Card JSON 2.0 interactive messages so tables render natively instead of forcing the whole reply to plain text. Keep regular markdown replies on post messages and add tests for table routing.
@daimon-nous daimon-nous Bot added type/feature New feature or request comp/gateway Gateway runner, session dispatch, delivery platform/feishu Feishu / Lark adapter P2 Medium — degraded but workaround exists labels May 19, 2026
@daimon-nous

daimon-nous Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Duplicate of #12114 (canonical PR for Feishu markdown table → card rendering). See also consolidation issue #27469 which tracks the full cluster of competing PRs for this feature.

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/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feishu channel displays markdown tables as raw source code instead of rendering them

1 participant