-
Notifications
You must be signed in to change notification settings - Fork 183
Open
Description
Bug Description
When using docs +create with a <callout> block containing emoji, background-color, or border-color attributes, these attributes are silently ignored in the resulting Feishu document.
Expected behavior: Callout blocks should render with the specified emoji and colors.
Actual behavior: All attributes are ignored; callout renders with default 🎁 emoji and no background/border color.
Steps to Reproduce
- Run:
lark-cli docs +create --title 'test' --markdown '<callout emoji="✅" background-color="light-green" border-color="green">test</callout>' - Open the created document
- Observe that the callout has no color and shows 🎁 instead of ✅
Root Cause Analysis
Querying the document blocks via API after creation:
{
"block_type": 19,
"callout": {
"emoji_id": "gift" // ← should be the original emoji or a valid emoji_id
},
// background_color: MISSING
// border_color: MISSING
}Two issues identified:
- Emoji handling: The MCP markdown converter converts emoji characters (e.g. ✅) to their emoji name ("gift"), but Feishu API expects an
emoji_idstring like "24689_favorite" or the raw emoji character should be passed through. - Color attributes:
background-colorandborder-colorattributes in<callout>tags are completely ignored and never sent to the Feishu API.
Test Document
A test document demonstrating the issue: https://www.feishu.cn/docx/HSwjdil66omz7PxgD6hcbpMtnUg
Environment
- lark-cli version: 1.0.0
- Platform: macOS (darwin/arm64)
- Node.js version: v23.11.0
- Shell: zsh
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels