feat: add streaming markdown rendering with incremental output
This commit is contained in:
parent
27c6447ef2
commit
856a3160fe
4 changed files with 45 additions and 25 deletions
6
testRender.ts
Normal file
6
testRender.ts
Normal 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));
|
||||
Loading…
Add table
Add a link
Reference in a new issue