Skip to content

[Bug]: Mattermost channel wraps Markdown tables in fenced code blocks instead of rendering tables #12238

@echo931

Description

@echo931

Summary

When sending a Markdown table via the built-in Mattermost channel plugin, OpenClaw wraps the message in fenced code blocks (```), which prevents Mattermost from rendering the table.

Mattermost itself renders the same table correctly when pasted directly into the client.

Steps to reproduce

  1. Send the following message via OpenClaw → Mattermost (exact text):
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
  1. Observe that the delivered message is wrapped in triple backticks and appears as a code block.

Expected behavior

OpenClaw should send the table as plain Markdown (pipes) so Mattermost renders it as a table.

Actual behavior

OpenClaw wraps the table in a fenced code block, so it is not rendered as a table.

Environment

  • Mattermost clients tested: Web, Desktop (Linux), Android
  • Mattermost: tables render correctly when pasted directly (without OpenClaw)

Notes / Suspected cause

This looks like a Markdown renderer/IR fallback that forces tablecodeBlock. For Mattermost specifically, that fallback should be disabled or made conditional since tables are supported by Mattermost clients.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions