cs150bf / ever-notedown

Atom Editor Plugin
MIT License
140 stars 13 forks source link

MathJax is not properly escaped in attachment alt text resulting in invalid ENML #68

Open cameroncoats opened 8 years ago

cameroncoats commented 8 years ago

If < and > are typed explicitly in mathjax (tested only with the inline single $ notation) rather than using \lt or \gt, they will be inserted into the alt text unescaped and cause evernote to reject the ENML as invalid. No error is returned to the user in this case; sending the note to evernote causes the 'send' button to display the spinner indefinitely.

This may be an intended behaviour as using the escaped versions is certainly best practice, but perhaps some escaping of XML symbols could be incorporated when the ENML is generated.