mcndt / noteshare.space

A service for sharing encrypted Markdown notes from Obsidian. Notes are end-to-end-encrypted and are only stored temporarily.
https://noteshare.space
MIT License
208 stars 22 forks source link

[Bug] Shorthand strikethrough markdown not displayed properly #36

Closed derekantrican closed 1 year ago

derekantrican commented 1 year ago

Describe the bug

Obsidian allows for a "shorter" strikethrough format where ~~ is only needed at the beginning of a line to strikethrough the entire line. noteshare.space does not seem to support this

To Reproduce

Create & share a note with the following text:

~~This is a test

Expected behavior

In Obsidian, this produces:

This is a test

Screenshots

Screenshot comparing Obsidian vs noteshare.space:

image

Environment (please complete the following information):

mcndt commented 1 year ago

Hey! I believe this is unintended behavior on Obsidian's part. This shorthand is not rendered in reader mode:

image

I suppose it's purpose in live preview mode is to let the user apply formatting while they are still typing, i.e. **this will eventually be bold should look bold before the bold syntax is closed.