Skip to content

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

@yellis

Description

@yellis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmode - rich textAffects the editor's rich text (wysiwyg) mode

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions