Skip to content

Commit 4cbb7db

Browse files
committed
fix: wrap breakdown table in code fence to preserve alignment and brackets
1 parent 06db2ef commit 4cbb7db

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,9 @@ export const plugin: Plugin = async (ctx) => {
431431
` ${"Total".padEnd(maxNameLen + 2)}${totalTime.padStart(maxTimeLen)}`,
432432
);
433433

434-
return lines.join("\n");
434+
const header = lines[0];
435+
const table = lines.slice(1).join("\n");
436+
return `${header}\n\`\`\`\n${table}\n\`\`\``;
435437
}
436438

437439
// Project-specific mode

0 commit comments

Comments
 (0)