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
|
|
@ -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, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue