Skip to content

fix(feishu): force text mode for markdown tables (salvage #13723)#20275

Merged
teknium1 merged 1 commit into
mainfrom
salvage/pr-13723
May 5, 2026
Merged

fix(feishu): force text mode for markdown tables (salvage #13723)#20275
teknium1 merged 1 commit into
mainfrom
salvage/pr-13723

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

@teknium1 teknium1 commented May 5, 2026

Salvages @WuTianyi123's PR #13723 onto current main.

What it does

Feishu post-type md elements do not render markdown tables. When table content triggered the _MARKDOWN_HINT_RE path (because of nearby **bold** etc.), the message rendered blank on the client. Detect tables via a dedicated regex and force plain-text payload for those cases.

Changes

  • gateway/platforms/feishu.py — new _MARKDOWN_TABLE_RE + table early-return in _build_outbound_payload.

Validation

tests/gateway/test_feishu.py — 196 passed locally.

Closes #13723 via salvage.

Feishu post-type 'md' elements do not render markdown tables.
When table content is sent as post (triggered by **bold** matching
_MARKDOWN_HINT_RE), the message appears blank on the client.

Add _MARKDOWN_TABLE_RE to detect markdown table syntax and force
text mode for table content, ensuring it is visible as plain text.
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/feishu Feishu / Lark adapter labels May 5, 2026
@teknium1 teknium1 merged commit 8e18d10 into main May 5, 2026
9 of 11 checks passed
@teknium1 teknium1 deleted the salvage/pr-13723 branch May 5, 2026 16:57
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.

2 participants