From 4f9e7a7a1ad4c5d24e3658ccd9c0cc3198ab8145 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 17 May 2026 19:40:45 -0400 Subject: [PATCH] style: enhance markdown inline formatting colors --- src/render/markdown.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/render/markdown.ts b/src/render/markdown.ts index 6417450..53461df 100644 --- a/src/render/markdown.ts +++ b/src/render/markdown.ts @@ -120,9 +120,7 @@ export async function renderMarkdown( .header(header) .body(body) .border() - .maxColWidth( - Math.floor(columns / header.length) - Math.floor(header.length / 2), - ) + .maxColWidth(Math.floor((columns - 3) / header.length)) .toString(); header = []; body = []; @@ -140,13 +138,13 @@ export async function renderMarkdown( }, td: (children) => `:tablesep:${children}`, th: (children) => { - header.push(new SWCell(chalk.red(children))); + header.push(new SWCell(chalk.red.bold(children))); return null; }, - strong: (children) => chalk.bold(children), - emphasis: (children) => chalk.italic(children), + strong: (children) => chalk.bold.rgb(254, 254, 254)(children), + emphasis: (children) => chalk.italic.rgb(254, 254, 254)(children), strikethrough: (children) => chalk.grey.strikethrough(children), - codespan: (children) => chalk.bgYellow.black(children), + codespan: (children) => chalk.bgYellow.black.bold(children), link: (children, { href }) => chalk.blueBright.underline(terminalLink(children, href)), image: () => chalk.red("Images are unsupported (for now)\n"),