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:
parent
7b3440ac4c
commit
2a7aa28d4c
@ -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,
|
||||
};
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user