fix(feishu): render markdown tables as native card elements - #20152
Open
Zeknes wants to merge 4 commits into
Open
fix(feishu): render markdown tables as native card elements#20152Zeknes wants to merge 4 commits into
Zeknes wants to merge 4 commits into
Conversation
Feishu's post format with md tags cannot render markdown tables correctly. This fix detects markdown tables and sends them as interactive card elements with Feishu's native table component. Changes: - Add _TABLE_RE regex to detect markdown tables in content - Add _parse_md_table() to parse MD tables into Feishu table elements - Add _build_card_elements() to split content into markdown + table elements - Add _split_elements_by_table_limit() for Feishu's 1-table-per-card limit - Add _build_outbound_payloads() for multi-table content - Update send() to handle interactive card errors with fallback - Columns use Feishu message API format (no tag field, with data_type) - _strip_md_formatting handles links, inline code, bold, italic, strikethrough Reference: nanobot's Feishu channel implementation
Collaborator
…ering Resolve conflict in gateway/platforms/feishu.py: - Keep card-based table rendering (interactive cards) over upstream's plain-text fallback approach - Accept all other upstream changes: dedup timestamp tolerance, receive_id_type detection, bot identity refresh, and 185 other commits - Remove dead _MARKDOWN_TABLE_RE regex (superseded by _TABLE_RE)
This was referenced May 9, 2026
Zeknes
force-pushed
the
fix/feishu-md-table-rendering
branch
from
June 1, 2026 09:01
2f5b7d5 to
61373e7
Compare
Contributor
|
Thanks for tackling a real Feishu rendering limitation. Current main still falls back to text for Markdown tables because post/md can render them blank ( Problems
Suggested changes
Automated hermes-sweeper review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feishu's post format with md tags cannot render markdown tables correctly. This fix detects markdown tables and sends them as interactive card elements with Feishu's native table component.
Changes: