1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Desktop: Resolves #2059: Add option to transform HTML notes into Markdown (#12730)

Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
pedr
2025-08-06 07:02:13 -03:00
committed by GitHub
parent 358134038c
commit 8c8a38e704
17 changed files with 309 additions and 0 deletions

View File

@@ -173,6 +173,7 @@ export interface State extends WindowState {
editorNoteReloadTimeRequest: number;
allowSelectionInOtherFolders: boolean;
noteHtmlToMarkdownDone: string;
// Extra reducer keys go here:
pluginService: PluginServiceState;
@@ -243,6 +244,7 @@ export const defaultState: State = {
mustAuthenticate: false,
allowSelectionInOtherFolders: false,
editorNoteReloadTimeRequest: 0,
noteHtmlToMarkdownDone: '',
pluginService: pluginServiceDefaultState,
shareService: shareServiceDefaultState,
@@ -1073,6 +1075,10 @@ const reducer = produce((draft: Draft<State> = defaultState, action: any) => {
}
break;
case 'NOTE_HTML_TO_MARKDOWN_DONE':
draft.noteHtmlToMarkdownDone = action.value;
break;
case 'ITEMS_TRASHED':
draft.lastDeletion = {