merge #228: markdown manual preview refresh (MuziIsabel)
# Conflicts: # src/client/EditorHost.tsx # src/client/TextEditor.tsx
This commit is contained in:
commit
b5eb71a136
5 files changed
+182
-3
No files matched your search
+7
-1
@@ -180,7 +180,13 @@ async function readText(path: string, readLimit: number): Promise<{
|
||||
const head = binary
|
||||
? slice.subarray(0, Math.min(slice.length, READ_HEAD_LIMIT)).toString('base64')
|
||||
: undefined
|
||||
return { content: binary ? '' : slice.toString('utf8'), truncated, binary, size, head }
|
||||
return {
|
||||
content: binary ? '' : slice.toString('utf8'),
|
||||
truncated,
|
||||
binary,
|
||||
size,
|
||||
head,
|
||||
}
|
||||
} finally {
|
||||
await handle.close()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user