fix(matrix): default markdown tables to bullets across Matrix clients · openclaw/openclaw@09a2d6e
kinjitakabe
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -65,7 +65,7 @@ Markdown tables are not consistently supported across chat clients. Use
|
65 | 65 | `markdown.tables` to control conversion per channel (and per account). |
66 | 66 | |
67 | 67 | - `code`: render tables as code blocks (default for most channels). |
68 | | -- `bullets`: convert each row into bullet points (default for Signal + WhatsApp). |
| 68 | +- `bullets`: convert each row into bullet points (default for Matrix, Signal, and WhatsApp). |
69 | 69 | - `off`: disable table parsing and conversion; raw table text passes through. |
70 | 70 | |
71 | 71 | Config keys: |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -238,4 +238,8 @@ describe("matrix channel message adapter", () => {
|
238 | 238 | }, |
239 | 239 | }); |
240 | 240 | }); |
| 241 | + |
| 242 | +it("declares bullets as defaultMarkdownTableMode to avoid code-block fallthrough (#78990)", () => { |
| 243 | +expect(matrixPlugin.messaging?.defaultMarkdownTableMode).toBe("bullets"); |
| 244 | +}); |
241 | 245 | }); |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -450,6 +450,7 @@ export const matrixPlugin: ChannelPlugin<ResolvedMatrixAccount, MatrixProbe> =
|
450 | 450 | }).map(projectMatrixConversationBinding), |
451 | 451 | }, |
452 | 452 | messaging: { |
| 453 | +defaultMarkdownTableMode: "bullets", |
453 | 454 | targetPrefixes: ["matrix"], |
454 | 455 | normalizeTarget: normalizeMatrixMessagingTarget, |
455 | 456 | resolveInboundConversation: ({ to, conversationId, threadId }) => |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。