unotes icon indicating copy to clipboard operation
unotes copied to clipboard

Unexpected notes reformatting

Open epikgit opened this issue 2 years ago • 3 comments

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.

epikgit avatar Nov 22 '22 19:11 epikgit

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 avatar Nov 28 '22 12:11 kiyoka

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

kiyoka avatar Nov 28 '22 12:11 kiyoka

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.

lukastom avatar Dec 07 '23 15:12 lukastom