fix(feishu): convert markdown tables to bullet lists instead of raw text - #29510
Closed
nasymonk wants to merge 1 commit into
Closed
fix(feishu): convert markdown tables to bullet lists instead of raw text#29510nasymonk wants to merge 1 commit into
nasymonk wants to merge 1 commit into
Conversation
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
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.
Summary
Feishu's post-type
mdelements don't render markdown tables. The previous code detected tables and fell back to plaintextmode, 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):
After (bullet list in post/md mode):
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