sublime-evernote
sublime-evernote copied to clipboard
Invalid contents error when writing a table in HTML
I have tried the following:
1 I have loaded an Evernote note,it used html instead of Github markup for the table.
2 I tried to save the note again using Update Evernote Note.
It shows me this message:
Evernote complained:
The contents of the note are not valid.
The entity name must immediately follow the '&' in the entity reference.
Retry?
I am using Ubuntu 15.04 AMD64 with Sublime Text 3.
I have set debug to true but that does gives me no real information:
Evernote error: [Enml validation]
The entity name must immediately follow the '&' in the entity reference.
Last command: {}
BEFORE SUBMITTING AN ISSUE (https://github.com/bordaigorl/sublime-evernote/issues):
1. Enable the `debug` setting in your Evernote.sublime-settings file and try again. If the problem persists take a note of the output in the console.
Make sure you delete personal information (e.g. Developer Token) from the output before posting it in an issue.
2. Check the wiki at https://github.com/bordaigorl/sublime-evernote/wiki
3. Search for similar issues at https://github.com/bordaigorl/sublime-evernote/issues?q=is%3Aissue
(Evernote plugin v2.6.0, ST 3083, Python 3.3.3, linux x64)
Have you tried escaping it with &? & is a special character in HTML...
I have met a similar problem with this code
<a id="1">[1]</a> [pip GitBook](https://pip.pypa.io/en/latest/installing/)
And got error when uploaded the note.
Evernote error: [Enml validation] Attribute "id" must be declared for element type "a". Last command: {}
Is something wrong? And it would be better if the error log provides specific lines and columns.
This is a limitation of Evernote, I cannot do anything about it: the problem is what the error message says. An <a> element cannot have the id attribute in an Evernote note. Get rid of the attribute and it should work. There is no reliable way to get internal anchors in Evernote as far as I know.
Thanks for your help. I'v found this reason from other issues. It's because that Evernote doesn't support MultiMarkdown, right? Is it possible to contact the Evernote team to add this feature? I'll have a try. Again, thanks for your helpful plugin. Have a nice day. ----Update--- I'v sent a help request. They would contact me maybe in three days. (premium account
This has nothing to do with MultiMarkdown specifically but with the fact that Evernote does not support all HTML elements/attributes. So any note containing something like <a id="..."> (either directly or generated) will be rejected see here for details. I hope this clarifies it.
Your problem is different that the one in the subject of this issue as in that case vamsiampolu was trying to save malformed HTML in a note, not just an unsupported fragment.
Thanks for your reply. The link page is helpful to me.