Move ser/deser logic to JS

This commit is contained in:
Andras Schmelczer 2025-01-05 20:49:38 +00:00
parent 7e045caab1
commit e43a13648b
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
7 changed files with 59 additions and 17 deletions

View file

@ -49,7 +49,7 @@ export class ObsidianFileOperations implements FileOperations {
return new Uint8Array(0);
}
if (isBinary(expectedContent) || !path.endsWith(".md")) {
if (isBinary(expectedContent)) {
await this.vault.adapter.writeBinary(
normalizePath(path),
newContent