Skip to content

Text editor drops empty headings in markdown #3755

Open

Description

@JammingBen

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

The text editor drops empty headings when saving markdown. Follow-up to #3583.

Reproduction Steps

Open a markdown file with this content in the text editor, save, reload.

a

## 

b

The same happens when adding an empty heading in the editor.

Expected Outcome

The empty heading is kept.

Actual Outcome

The editor shows the empty heading, but it is saved as blank lines (a\n\n\n\nb) and is gone after reloading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions