fix(feishu): force text mode for markdown tables (salvage #13723)#20275
Merged
Conversation
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.
1 task
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.
Salvages @WuTianyi123's PR #13723 onto current main.
What it does
Feishu post-type
mdelements do not render markdown tables. When table content triggered the_MARKDOWN_HINT_REpath (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.