chore: fix biome issues

This commit is contained in:
2026-04-14 17:00:51 +05:30
parent 2e0093025f
commit 08500bb7c8
5 changed files with 13 additions and 14 deletions
+3 -3
View File
@@ -266,17 +266,17 @@ export function convertTablesToMarkdown($: cheerio.CheerioAPI): void {
// Header row
if (rows.length > 0) {
const header = rows[0].concat(Array(maxCols - rows[0].length).fill(""));
mdLines.push("| " + header.join(" | ") + " |");
mdLines.push(`| ${header.join(" | ")} |`);
}
// Separator
mdLines.push("|" + Array(maxCols).fill(" --- ").join("|") + "|");
mdLines.push(`|${Array(maxCols).fill(" --- ").join("|")}|`);
// Data rows (skip header if we have more rows)
const dataRows = rows.length > 1 ? rows.slice(1) : [];
for (const row of dataRows) {
const padded = row.concat(Array(maxCols - row.length).fill(""));
mdLines.push("| " + padded.join(" | ") + " |");
mdLines.push(`| ${padded.join(" | ")} |`);
}
// Replace table with markdown