mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-03 02:11:07 +05:30
feat: complete master feature parity with interactive PDF editing, Reveal.js export dialog, Large File Mode, and scoped CSS
This commit is contained in:
@@ -8,6 +8,11 @@ function register() {
|
||||
await fs.writeFile(filePath, Buffer.from(buffer));
|
||||
return { ok: true };
|
||||
});
|
||||
|
||||
ipcMain.handle('read-buffer', async (_event, { path: filePath }) => {
|
||||
const data = await fs.readFile(filePath);
|
||||
return { ok: true, data };
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = { register };
|
||||
|
||||
Reference in New Issue
Block a user