Add /hotkeys command, Ctrl+D exit, markdown table borders

This commit is contained in:
Mario Zechner 2025-12-19 01:19:21 +01:00
parent c1f2541639
commit b2f29613e8
4 changed files with 71 additions and 2 deletions

View file

@ -585,6 +585,10 @@ export class Markdown implements Component {
}
}
// Render top border
const topBorderCells = columnWidths.map((w) => "─".repeat(w));
lines.push("┌─" + topBorderCells.join("─┬─") + "─┐");
// Render header with wrapping
const headerCellLines: string[][] = token.header.map((cell, i) => {
const text = this.renderInlineTokens(cell.tokens || []);
@ -622,6 +626,10 @@ export class Markdown implements Component {
}
}
// Render bottom border
const bottomBorderCells = columnWidths.map((w) => "─".repeat(w));
lines.push("└─" + bottomBorderCells.join("─┴─") + "─┘");
lines.push(""); // Add spacing after table
return lines;
}