Open zhaoshe opened 9 years ago
@zhaoshe I've made a quick fix which probably doesn't work actually, but it should at least stop the error from popping up.
May I ask what kind of mathjax/latex equation are you writing when you see this error? Do you have some special characters in it? From a glance, I think handling mathjax equations containing non-latin1 characters could be a tricky business and I would suggest avoiding those cases for now, as unfortunately at this moment I have very little time to work on figuring it out... But if anybody would like to help, contributions would be appreciated.
If you are not writing math equations...perhaps you have multiple dollar signs "$" in your note? In which case you probably want to escape them with backslash ("\$") or turn off the "mathjax" option in settings, otherwise anything between two dollar signs would be interpreted as a math equation.
[Enter steps to reproduce below:]
Atom Version: 1.0.0 System: Mac OS X 10.10.3 Thrown From: ever-notedown package, v0.2.2
Stack Trace
Uncaught InvalidCharacterError: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
Commands
Config
Installed Packages