ryanmcalister / unotes

Unotes Visual Studio Code Extension. A markdown WYSIWYG notes editor.
MIT License
173 stars 22 forks source link

Unexpected notes reformatting #146

Open epikgit opened 1 year ago

epikgit commented 1 year ago

Since the (welcomed) 1.5.0 version some of my notes are reformatted unexpectedly. I open a note and UNotes reformats it in a strange way.

For example: **Standard Build** and not **MicroG build** becomes **Standard Build** and not <strong>MicroG build</strong>

A path like: \\saturn\Disk2TB\DiskN\ becomes \\\saturn\\Disk2TB\\DiskN\\

A double new line that was rendering with an empty line and two <br/> tags now has became two empty lines and one <br/>

A strikethrough URL was [~~https://forum.xda-developers.com/~~] and now is ~~[https://forum.xda-developers.com/]~~

Is it possible that the new remark-stringify addin is not so disabled by default? Otherwise I can't understand why this is happening.

kiyoka commented 1 year ago

Probably because the behavior of the editor changed when we upgraded from tui-editor 2.5 to tui-editor 3.2.1. tui-editor was upgraded at Unotes Version 1.5. #141

The following will be most frustrating A path like: \\saturn\Disk2TB\DiskN\ becomes \\\saturn\\Disk2TB\\DiskN\\

I will research it to see if the behavior can be changed. tui-editor 3.2.1 basically escapes \ and _ with a backslash \. It would be a better editor to disable that completely.

kiyoka commented 1 year ago

It seems that tui-editor has strange backslash behavior. I'll see if I can do something about it.

https://github.com/nhn/tui.editor/issues/2546 https://github.com/nhn/tui.editor/issues/2813 https://github.com/nhn/tui.editor/issues/1077

lukastom commented 7 months ago

Sorry to say but for me, this plugin is dangerous. It literally rewrites the markdown notes (like replacing two asterisks with strong tag). I uninstalled immediatelly and revert the rewritten note to the previous state. Fortunatelly it was only one note but with 2 200 lines.