merge #228: markdown manual preview refresh (MuziIsabel)

# Conflicts:
#	src/client/EditorHost.tsx
#	src/client/TextEditor.tsx
This commit is contained in:
HuanLinOTO committed 2026-08-24 01:34:55 +08:00
commit b5eb71a136
5 files changed
+182 -3

No files matched your search

+7 -1
View File
@@ -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()
}