bordaigorl / sublime-evernote

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

Make iOS Evernote client respect plugin formatting? #200

Open axfelix opened 6 years ago

axfelix commented 6 years ago

Editing a note I've created in Sublime on the iPhone Evernote client inserts a lot of junk formatting and kind of screws up my markdown -- is there an officially-blessed way around this?

Thanks!

bordaigorl commented 5 years ago

If you post an example I can try and answer =)

axfelix commented 5 years ago

Basically, whenever I edit a markdown note on another client and then reload it in sublime, I get a lot of HTML linebreaks and things like that. I'm not sure if there is a way to tag a note "this is markdown" so other clients don't try to insert HTML.

bordaigorl commented 5 years ago

This looks like a common trend among Evernote clients: it is not trendy enough to simply wrap each paragraph in <p> tags. No. They need to put explicit linebreaks with <div><br/></div> every time you type enter. The big problem is that:

  1. this is not consistently done across client versions
  2. this is not done consistently across different clients
  3. this is undocumented and basically nowhere specified, so it can change arbitrarily
  4. how do we understand the difference between a <div><br/><div> that was entered in the markdown on purpose and one that was injected by the client?

I mean, I could add an option to toggle some "space trimming" but this is getting ridiculous.