MCPcopy Create free account
hub / github.com/codeaashu/claude-code / markdownTable

Function markdownTable

src/skills/bundled/keybindings.ts:332–339  ·  view source on GitHub ↗

* Build a markdown table from headers and rows.

(headers: string[], rows: string[][])

Source from the content-addressed store, hash-verified

330 * Build a markdown table from headers and rows.
331 */
332function markdownTable(headers: string[], rows: string[][]): string {
333 const separator = headers.map(() => '---')
334 return [
335 `| ${headers.join(' | ')} |`,
336 `| ${separator.join(' | ')} |`,
337 ...rows.map(row => `| ${row.join(' | ')} |`),
338 ].join('\n')
339}
340

Callers 3

generateContextsTableFunction · 0.85
generateActionsTableFunction · 0.85
keybindings.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected