bordaigorl / sublime-evernote

Open and Save Evernote notes from Sublime Text 3 using Markdown
Other
1.15k stars 106 forks source link

Error updating note with empty list item #186

Open ghost opened 6 years ago

ghost commented 6 years ago

This is a great plugin and I use it every day! However, sometimes I get this error message:

Evernote complained:

The contents of the note are not valid. The element type "li" must be terminated by the matching end-tag "".

Retry?

This can happen in two situations: (1) a note is saved (2) a note is closed & saved to Evernote. In the first case, nothing will happen - the note is still present in ST. In the second case, the entire note will get lost if not previously saved to Evernote.

The note in the attachment creates this error. The problem is the empty list item with the "-" (minus) sign.

note with list that causes trouble.txt

bordaigorl commented 6 years ago

I do not have time to investigate at the moment but it seems yet another ugly corner case of the markdown converter used by the plugin. A migration to a better one is planned but unless I get some help it is unlikely to happen very soon. You may need to remember to avoid empty list items for now. If I find an easy fix I'll let you know and publish it in the next release. Thanks for the report.