Skip to content

Commit

Permalink
add Vitale.stream
Browse files Browse the repository at this point in the history
the VS Code renderer for text/plain doesn't word wrap
microsoft/vscode#218190
but the stream one does ??
  • Loading branch information
Jake Donham committed Jun 25, 2024
1 parent 4ad6f0c commit 8e52b5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ export function text(data: string) {
return { data, mime: "text/plain" };
}

export function stream(data: string) {
return { data, mime: "application/x.notebook.stream" };
}

export function markdown(data: string) {
return { data, mime: "text/markdown" };
}
Expand Down

0 comments on commit 8e52b5a

Please sign in to comment.