wormi4ok/evernote2md

Convert to Markdown but many image disappear

Closed this issue · 7 comments

Hi @fekfoq259 !

Thanks for reporting the problem. This is an interesting edge case, image URLs in the note actually have the "name" attribute. I will try to find a good workaround tomorrow and create a new release soon.

It's very nice that you uploaded an example - this saved me a lot of time 👍

Hello @fekfoq259 .

Could you please test this version https://github.com/wormi4ok/evernote2md/releases/tag/v0.6.0 and check if it works as expected?

Yes. The problem has been solved. Thank you.

I also test orther page found orther issue.

  • some long picture won't works will
  • if we have many notes have same title it only build one note
    more demo

Hello again, @fekfoq259.

It turned out that the problem with the pictures you mentioned had nothing to do with the size, but with the original HTML source.
The websites, you scrape pages from, contain valid, yet insufficient HTML-markup, and after converting them to Evernote notes, we get a poorly formatted export file. In general, for notes that you create yourself, you will get a much better result.

I'm trying to make evernote2md work with any kind of input and produce a valid result, but I'd recommend looking for some other tools to save the content of the websites. It appears that you still have access to most of them, and the result will be much better if you use the right tool.

Thanks again for the contribution, please give v0.8.0 a try and let me know if it works for you!

Problem has been solved in v0.8.0. Thank you again.
But I found another issue.
I use html clipper by OneNote than import to Evernote than export enex or html. In this process html's image will have same name.
Maybe we shouln't put all image in same folder.
demo in here

Hello,
Yes, I'm aware of this issue and still thinking about the right way to implement a fix for it. I'd really like to keep this flat file structure, but in this case, there is no guarantee that filenames are unique in every note.

Meanwhile, you can try to isolate exports by running evernote2md for each export file individually:

for FILE in ./demo6-image-have-same-name/*.enex; do
  ./evernote2md $FILE ${FILE%.enex}
done

This should work in any OS that runs bash, e.g. Linux, macOS and WSL in Windows.

Ok.
Maybe we should use title and size add hash postfix. (If have same image name)
If build image in different folder. We can use any shell collect all image to one folder and auto edit markdown file's content and use any method avoid duplication.
It wiil be more easiler than export single enex by hand.