Notes-up icon indicating copy to clipboard operation
Notes-up copied to clipboard

In certain cases, formatting insertion ignores new line

Open aljelly opened this issue 7 years ago • 0 comments
trafficstars

Steps to reproduce:

  1. Create a new note
  2. Type some text and press Enter any amount of times
  3. Press one of the formatting buttons. Even though you're on a new line, the text above will have formatting applied to it.

However, it doesn't happen when you do this:

  1. Create a new note
  2. Type some text and press Enter any amount of times
  3. Click on any new line that was just created
  4. Press one of the formatting buttons. The formatting will appear on the new line you selected and will not affect the text above.

This also applies to keyboard shortcuts (e.g. Ctrl + B for bold).

  • Maybe the behavior above should happen for list creation if you're still on that line(?)

  • Maybe conversion should only happen with bold/italic/strikethrough if you're at the end of that word and haven't pressed space yet. (Probably shouldn't happen with code formatting?)

    To illustrate (pipe is text cursor, pressing Ctrl + B):

    • Should format last word: word| = **word**|
    • Shouldn't format last word: word | = word **|**

aljelly avatar Mar 15 '18 15:03 aljelly