Automattic / simplenote-electron

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

Inserting Email Address Into Note Causes Markdown Preview to be Blank #3200

Closed mdrockwell closed 1 month ago

mdrockwell commented 1 month ago

Expected

A note that includes an email address in the text should display the full note's text in the markdown preview.

Observed

The preview is completely blank.

Reproduced

  1. Create a new note
  2. Type an email address into the note — "email@domain.com", for example.
  3. Click on the markdown preview button.
CleanShot 2024-05-22 at 09 22 43 CleanShot 2024-05-22 at 09 22 37

Where did you see the bug

Reported by user in the forums.

mdrockwell commented 1 month ago

One workaround is to wrap the email address in ` to create a code block.

codebykat commented 1 month ago

Fascinating. You're right. I guess one of our recent dependency upgrades changed something about the preview sanitization behavior...

codebykat commented 1 month ago

This is now fixed on app.simplenote.com and will be included in the upcoming 2.22 release.