continue-custom/gui/src/components/mainInput/utils.ts
2025-03-20 14:45:57 -07:00

18 lines
321 B
TypeScript

import { JSONContent } from "@tiptap/core";
export function getParagraphNodeFromString(str: string): JSONContent {
return {
type: "doc",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: str,
},
],
},
],
};
}