From 94895aacd59a1df893396733508398467b45ffb8 Mon Sep 17 00:00:00 2001 From: mitchell Date: Fri, 1 May 2026 21:23:21 -0400 Subject: [PATCH] style: improve codespan styling and checkbox markers --- src/render/markdown.ts | 4 ++-- testRender.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/render/markdown.ts b/src/render/markdown.ts index b7f5c7e..258cdfe 100644 --- a/src/render/markdown.ts +++ b/src/render/markdown.ts @@ -77,7 +77,7 @@ export async function renderMarkdown( const indent = " ".repeat(depth); let marker = ""; if (checked !== undefined) { - marker = checked ? "[✓]" : "[ ]"; + marker = checked ? "• [✓]" : "• [ ]"; } else if (ordered) { const n = (start ?? 1) + index; marker = `${n}.`; @@ -104,7 +104,7 @@ export async function renderMarkdown( strong: (children) => chalk.bold(children), emphasis: (children) => chalk.italic(children), strikethrough: (children) => chalk.grey.strikethrough(children), - codespan: (children) => chalk.bgWhite.black(` ${children} `), + codespan: (children) => chalk.bgBlack.yellowBright(` ${children} `), link: (children, { href }) => chalk.blueBright.underline(terminalLink(children, href)), image: () => "", diff --git a/testRender.ts b/testRender.ts index a31dfe4..6373337 100644 --- a/testRender.ts +++ b/testRender.ts @@ -1,6 +1,6 @@ import { renderMarkdown } from "./src/render/markdown.ts"; -const text = await Bun.file("test.md").text(); +const text = await Bun.file("README.md").text(); const [columns] = process.stdout.getWindowSize(); process.stdout.write(await renderMarkdown(text, columns));