sublime-evernote icon indicating copy to clipboard operation
sublime-evernote copied to clipboard

Error updating note with empty list item

Open ghost opened this issue 8 years ago • 1 comments
trafficstars

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

ghost avatar Jul 20 '17 08:07 ghost

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.

bordaigorl avatar Jul 20 '17 10:07 bordaigorl