Conversation
Zero-dependency GFM rendering for agent pipelines. Arrays → GFM tables; single objects → bold key-value lists. LLMs parse markdown natively — no external package needed. Alternative to --format toon (PR #268); resolves the same token-efficiency problem without adding a dependency.
pr-reviewer Summary📝 3 findings Review completed. Please address the findings below. Findings by Severity
Review effort: 2/5 (Simple) SummaryA clean, well-scoped addition of a Findings
|
- Fix help text: split --table/-t and --format <fmt> (table is a flag, not a --format value) - Escape newlines in markdown cell values to prevent broken GFM rows - Add 10 unit tests for formatMarkdown covering all extraction shapes, edge cases, and formatOutput integration
|
All three addressed in 4c233c8:
|
Summary
Adds GitHub-flavoured Markdown as an output format via
--format markdown. Zero external dependencies.What
formatMarkdown(data)— pure Node.js, no deps| col | col |syntax +| --- |separator, up to 10 columns / 100 rows- **key**: valuelist**Error:** messageformatOutput()gains amarkdownbranch alongside csv/table/pretty--format markdownadvertised inresearchsubcommand helpUsage
Sample output:
Zero regression risk
Opt-in flag. All existing formats unchanged. 876/876 tests pass.
🤖 Generated with Claude Code