dumper icon indicating copy to clipboard operation
dumper copied to clipboard

Deeply nested lists rendered flat

Open chodorowicz opened this issue 7 years ago • 6 comments

First of all thanks for the tool. I'm in the process of migrating Evernote notes to markdown so your tool could be very helpful.

One thing I have problem with is that after doing enex-dump my note's nested lists are flat in markdown format. Is it a know problem or am I doing something wrong?

Thanks 🙇

chodorowicz avatar Jan 19 '19 13:01 chodorowicz

@chodorowicz can you post an .enex file that I can use to reproduce the problem?

fabiospampinato avatar Jan 19 '19 13:01 fabiospampinato

Here it is. Thanks! Github is blocking .enex extension upload, I've changed extension to txt. test.txt

chodorowicz avatar Jan 19 '19 21:01 chodorowicz

This seems to be an upstream issue https://github.com/domchristie/turndown/issues/272

fabiospampinato avatar Jan 21 '19 18:01 fabiospampinato

I see... Damn Evernote. It's producing malformed HTML, haven't noticed that at first sight. I won't expect really that to be fixed by turndown. It seems migration from Evernote will require more manual fixed than expected. When I'm converting Evernote to markdown via Typora the output is bit better but still not perfect. Sth like this is produced.

- first level
- - second level

Anyway, thanks a lot for looking into this issue 🙇

chodorowicz avatar Jan 22 '19 00:01 chodorowicz

Maybe something like - - second level could be fixed with a simple regex.

fabiospampinato avatar Jan 22 '19 00:01 fabiospampinato

True! I will do it probably in that way.

chodorowicz avatar Jan 22 '19 20:01 chodorowicz