notable / dumper

Library for extracting attachments, notes and metadata out of formats used by popular note-taking apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deeply nested lists rendered flat

chodorowicz opened this issue · 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 can you post an .enex file that I can use to reproduce the problem?

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

This seems to be an upstream issue mixmark-io/turndown#272

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 🙇

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

True! I will do it probably in that way.