feat: add streaming markdown rendering with incremental output

This commit is contained in:
mitchell 2026-04-18 05:04:00 -04:00
parent 27c6447ef2
commit 856a3160fe
4 changed files with 45 additions and 25 deletions

6
testRender.ts Normal file
View file

@ -0,0 +1,6 @@
import { renderMarkdown } from "./src/render/markdown.ts";
const text = await Bun.file("output.md").text();
const [columns] = process.stdout.getWindowSize();
process.stdout.write(await renderMarkdown(text, columns));