Unterscheide Eingang und Ausgang an der Einbindung und ermoegliche Umbenennen, Archivieren, Loeschen und Verschieben.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
20625b4596
commit
ad6240a5da
27 files changed
+1191
-88
No files matched your search
+1
-2
@@ -123,8 +123,7 @@ export async function downloadFile(elementId, context, filename) {
|
||||
}
|
||||
|
||||
export function textToDocument(text) {
|
||||
const blocks = text.split(/\n/).map((line) => ({ type: "paragraph", text: line }));
|
||||
return { version: 1, blocks: blocks.length ? blocks : [{ type: "paragraph", text: "" }] };
|
||||
return { version: 1, blocks: [{ type: "markdown", text: text || "" }] };
|
||||
}
|
||||
|
||||
export function documentToText(document) {
|
||||
|
||||
Reference in new issue
Block a user