1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00

Desktop, Cli: Fixes #3923 (Regression): Importing ENEX as HTML was importing as Markdown

This commit is contained in:
Laurent Cozic 2020-10-17 11:35:51 +01:00
parent 7b3440ac4c
commit 2a7aa28d4c
2 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,7 @@ function useMenu(props:Props) {
const importOptions = {
path,
format: module.format,
modulePath: module.path,
outputFormat: module.outputFormat,
onError: console.warn,
destinationFolderId: !module.isNoteArchive && moduleSource === 'file' ? props.selectedFolderId : null,
};

View File

@ -282,6 +282,8 @@ export default class InteropService {
let importer = null;
// Not certain the "modulePath" property still has any use at this point. Modules should be looked up
// based on their format and outputFormat.
if (options.modulePath) {
importer = this.newModuleFromPath_(ModuleType.Importer, options);
} else {