CommandCodeAI / CommandCodeAI/command-code

Support markdown renderer in feed so mods can output formatted into

オープン
#609 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
言語のデータがありません
スター
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:

Image

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:

Image

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

フィードサーフェスの行ベースレンダリングに関するドキュメントから始め、markdownを出力するmodを使って問題を再現します。サポート対象として意図されているmarkdownの範囲と、ANSI出力とどのように共存すべきかを確認します。modからのmarkdownが生テキストとして表示されるのではなく、フィード内でレンダリングされれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
markdown
領域
cli
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。