CommandCodeAI / CommandCodeAI/command-code

Support markdown renderer in feed so mods can output formatted into

Offen
#609 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Keine Sprachdaten
Sterne
4k
Forks
350
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit der Dokumentation zur zeilenbasierten Darstellung der Feed-Oberfläche und reproduziere das Problem mit einem Mod, der Markdown ausgibt. Ermittle den vorgesehenen unterstützten Markdown-Umfang und wie er mit der ANSI-Ausgabe koexistieren soll; abgeschlossen ist die Aufgabe, wenn Markdown aus einem Mod im Feed dargestellt wird, anstatt als Rohtext angezeigt zu werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
markdown
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.