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

View file

@ -47,7 +47,7 @@ import kanagawaLotus from "@shikijs/themes/kanagawa-lotus";
import kanagawaWave from "@shikijs/themes/kanagawa-wave";
export async function renderMarkdown(
text: PromiseLike<string>,
text: PromiseLike<string> | string,
columns: number,
) {
return render(await text, {