CommandCodeAI / CommandCodeAI/command-code
Support markdown renderer in feed so mods can output formatted into
未關閉
還沒有人認領這個 Issue。
- 主要語言
- 沒有語言資料
- 星號
- 4k
- 分支
- 350
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Summary
Am building a mod that renders schema db files and also displays table info.
I'd like to have the mod use a ui render that output markdown and the feed rendered it as such.
But any markdown generated is un-formatted:
I'm told that:
⠶ The mod feed surface doesn't support markdown rendering — it's strictly line-based with ANSI escape codes. From the docs: "Rendering is deliberately line-based,
not component-based." There's no way to render a markdown pipe table in the feed from a mod command. The compact per-column format with colored badges is the
best that's possible on this surface.
There is a custom renderer so it can output ANSI like:
But markdown could be nice or even larger reddened like Mermaid markdown for graphs and diagrams.
Expected Behavior
Markdown to look render markdown in feed
Actual Behavior
Just raw text
Steps to reproduce the issue
- Build a mod that outputs markdown
Command Code Version
1.5.0
Operating System
macOS
Terminal/IDE
ghostty
Shell
zsh
Additional context
No response
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 feed 介面的基於行的渲染文件開始,並使用會輸出 markdown 的 mod 重現此問題。確定預期支援的 markdown 範圍,以及它應如何與 ANSI 輸出共存;完成的標準是 mod 輸出的 markdown 在 feed 中被渲染,而不是顯示為原始文字。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- markdown
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100