fix: automatically convert Super notes to Markdown for the Plaintext Backups feature

This commit is contained in:
Mo
2023-05-02 15:37:23 -05:00
parent 2eddc3a1c6
commit 75ecf4c393
11 changed files with 88 additions and 48 deletions

View File

@@ -1,3 +1,4 @@
import { InvisibleSuperConverter } from '@/Components/SuperEditor/Tools/InvisibleMarkdownConverter'
import {
SNComponent,
ComponentMutator,
@@ -38,6 +39,9 @@ export class DesktopManager
private backups: BackupServiceInterface,
) {
super(application, new InternalEventBus())
const markdownConverter = new InvisibleSuperConverter()
backups.setSuperConverter(markdownConverter)
}
async handleWatchedDirectoriesChanges(changes: DesktopWatchedDirectoriesChanges): Promise<void> {