Skip to content

im +messages-send --markdown: table syntax and blank lines are silently dropped #202

@Astro-Han

Description

@Astro-Han

Environment

  • OS: macOS 26.3.1 arm64
  • lark-cli version: v1.0.2
  • Shell: zsh

Description

When sending messages with --markdown, two formatting issues occur:

  1. Markdown tables are completely lost| col | col | syntax produces no output at all, the table content disappears silently
  2. Blank lines are collapsed — double newlines \n\n between paragraphs are compressed to single newlines, removing paragraph spacing

Steps to Reproduce

lark-cli im +messages-send --as bot --chat-id "oc_xxx" --markdown '**Test**

| Item | Status |
|------|--------|
| Table | Testing |

Paragraph 1

Paragraph 2 (should have blank line above)'

Expected output in Feishu

**Test**

| Item   | Status  |
|--------|---------|
| Table  | Testing |

Paragraph 1

Paragraph 2 (should have blank line above)

Actual output in Feishu

Test
Paragraph 1
Paragraph 2 (should have blank line above)
  • Table is completely missing
  • Bold renders correctly
  • All blank lines between paragraphs are gone

Impact

This makes --markdown unreliable for any structured data output. Users must fall back to --text (which preserves blank lines but has no formatting) or manually format with lists instead of tables.

Current workaround

  • Use bullet lists instead of tables: - Item: Status
  • Use --text when paragraph spacing matters
  • Use --markdown with --- (horizontal rule) as a visual separator instead of relying on blank lines

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdomain/imPR touches the im domain

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions