(summary, body)
| 11 | import { enrichSummary } from "../core/scoring.js"; |
| 12 | |
| 13 | function detailsBlock(summary, body) { |
| 14 | const content = Array.isArray(body) ? body.join("\n") : body; |
| 15 | if (!content || content.trim().length === 0) { |
| 16 | return ""; |
| 17 | } |
| 18 | |
| 19 | return [`<details>`, `<summary>${summary}</summary>`, "", content, `</details>`].join("\n"); |
| 20 | } |
| 21 | |
| 22 | function section(title, lines) { |
| 23 | return [`## ${title}`, ...lines].join("\n"); |
no outgoing calls
no test coverage detected