notable / dumper

Library for extracting attachments, notes and metadata out of formats used by popular note-taking apps.
MIT License
121 stars 8 forks source link

Deeply nested lists rendered flat #6

Open chodorowicz opened 5 years ago

chodorowicz commented 5 years ago

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 🙇

fabiospampinato commented 5 years ago

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

chodorowicz commented 5 years ago

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

fabiospampinato commented 5 years ago

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

chodorowicz commented 5 years ago

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 🙇

fabiospampinato commented 5 years ago

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

chodorowicz commented 5 years ago

True! I will do it probably in that way.