Automattic / simplenote-electron

Simplenote for Web, Windows, and Linux
https://app.simplenote.com
GNU General Public License v2.0
4.76k stars 557 forks source link

Internal links to imported notes can be multiline #2768

Open pachlava opened 3 years ago

pachlava commented 3 years ago

Expected

Internal link should not include line breaks

Observed

Found thanks to this bug . The exported notes have extra line breaks. Once these notes are imported again, the internal link for the note will include the line break:

Screenshot 2021-03-15 at 11 40 27

Reproduced

  1. Have one note with a single line break between title and content
  2. Export it
  3. Import it back (no matter if json or plain text)
  4. In the other note, type [ and the note title ~> you will see new line symbols shown in the popup
  5. Once entered, the internal link will be placed on multiple lines, and will not be handled correctly in MD view.
Screenshot 2021-03-15 at 11 40 39

Where did you see the bug

valenwave commented 3 months ago

This has been annoying me as well.

image

I used to be able to resolve this by marking my file that I'm linking to as Markdown, but it doesn't seem to be making a difference anymore.