Stacks-Editor icon indicating copy to clipboard operation
Stacks-Editor copied to clipboard

bug(rich-text) Extra line inserted when advancing past code block to following HR element

Open yellis opened this issue 3 years ago • 1 comments

Describe the bug In rich text mode, having an horizontal rule after a source fence, if you move the cursor down ↓ it visually pushes the


down one line each time you go over it.

There is also no way to get beneath the HR element when it is the last element in the doc.

To Reproduce

  1. MD mode, enter this text:
```
text in fence
```
---
  1. Switch to RT mode. Click in text, then down arrow
  2. Observe, a new line is inserted image

Root cause is not that you cant get past the HR in RT mode, since when there is more text beneath it, the link still appears.

Expected behavior Should be able to move beyond the HR to go past it, the way that can be done when it is preceded by regular text and not a fenced code block

Desktop (please complete the following information): Windows 11 Chrome 103

Additional context https://meta.stackexchange.com/a/380438/51

yellis avatar Jul 17 '22 13:07 yellis

Can also repro with just an empty block, not just restricted to hr as the next element.

Here's me just hitting up-arrow / down-arrow in and out of a code block

arrow-down-new-line .

KyleMit avatar Aug 18 '22 18:08 KyleMit