Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implement markdown and AST rendering for tables across adapters#160

Open
cramforce wants to merge 3 commits intomainfrom
tables
Open

Implement markdown and AST rendering for tables across adapters#160
cramforce wants to merge 3 commits intomainfrom
tables

Conversation

@cramforce
Copy link
Contributor

⏺ ┌─────────────┬────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────┬─────────────┐                                                                      
  │   Adapter   │                    mdast → text                    │                            Card TableElement                             │ Tests added │
  ├─────────────┼────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────┤                                                                      
  │ Slack       │ Code block (ASCII table)                           │ Block Kit Table block (falls back to code block if >100 rows / >20 cols) │ +3          │                                                                      
  ├─────────────┼────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────┤                                                                      
  │ Teams       │ GFM markdown table (`                              │ col                                                                      │ col         │
  ├─────────────┼────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────┤
  │ Discord     │ Code block (ASCII table)                           │ GFM markdown table in embed description                                  │ +1          │
  ├─────────────┼────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────┤
  │ Google Chat │ Code block (ASCII table)                           │ Monospace TextParagraph widget                                           │ +1          │
  ├─────────────┼────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────┤
  │ Telegram    │ Replaces table nodes with code blocks via walkAst  │ Handled via shared cardToFallbackText                                    │ —           │
  ├─────────────┼────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────┤
  │ GitHub      │ No changes (already works via stringifyMarkdown)   │ GFM markdown table                                                       │ —           │
  ├─────────────┼────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────┤
  │ Linear      │ No changes (already works via stringifyMarkdown)   │ GFM markdown table                                                       │ —           │
  ├─────────────┼────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────┤
  │ Core (chat) │ Type guards, tableToAscii(), tableElementToAscii() │ TableElement type, Table() builder, fallback handling                    │ +11         │
  ├─────────────┼────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────┤
  │ Shared      │ —                                                  │ case "table": in shared fallback                                         │ —           │
  └─────────────┴────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────┴─────────────┘

@vercel
Copy link
Contributor

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Comment, Open in v0 Mar 3, 2026 0:22am
chat-sdk-nextjs-chat Ready Ready Preview, Comment, Open in v0 Mar 3, 2026 0:22am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant