CommandCodeAI / CommandCodeAI/command-code

Support markdown renderer in feed so mods can output formatted into

Đang mở
#609 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4k
Fork
350
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với tài liệu về việc kết xuất dựa trên từng dòng của giao diện feed và tái hiện vấn đề bằng một mod phát ra markdown. Xác định phạm vi markdown được dự kiến hỗ trợ và cách nó nên cùng tồn tại với đầu ra ANSI; hoàn tất có nghĩa là markdown từ một mod được kết xuất trong feed thay vì hiển thị dưới dạng văn bản thô.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
markdown
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.