joplin
joplin copied to clipboard
Beta editor add two newlines instead of one in certain contexts
Operating system
Windows
Joplin version
3.0
Desktop version info
Start from this text:
- One
- Two
- Add
>
before- One
to quote it, then after "One" press Shift+Enter twice - Add a bullet point for example
- test
- Press enter once
Current behaviour
Instead of adding one newline, it's adding two even though in other contexts it would add only one.
Probably the editor tries to guess how many newlines there should be and incorrectly does so. I think we should reduce how much magic happens when typing in this editor unless we are 100% sure this is what the user will want. So pressing Enter should add one newline in almost all cases.
There are many other such strange behaviours when I use the editor. For example at some point it displayed my bullet point as code even though it wasn't wrapped in backticks. Cursor was also randomly moving to the next bullet point. But unfortunately I cannot consistently replicate this. But the idea is to make the editor less smart and more predictable.
Expected behaviour
No response
Logs
No response