Text "Content" in headline breaks order of elements in Markdown editor
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 659
- Forks
- 133
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 110
Description
Describe the bug
When I enter an H3 headline with the text "Content", formatting breaks.
To Reproduce
Steps to reproduce the behavior:
- Create new .md file
- Enter a pagraph and line berak
- Enter
### Content
After less than a second, the headline "Content" moves to the bottom of the text and has its top left corner cropped.
A cursor can be placed in the "Content" line, but pressing enter and trying to add a paragraph below adds the paragraph above instead. "Content" seems to be taken outside of the flow of the document.
Expected behavior
Regular headline "Content" is shown
Screenshots
Server details:
- Nextcloud version: 25.0.13
- PHP Version: 7.4.3
- Database: unknown
- Text 3.6.0
Client details:
- OS: MacOS
- Browser: Firefox
- Browser version: 133.0
- Device: MacBook
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the Markdown editor using the listed Nextcloud Text, browser, and operating-system versions, then trace how an H3 containing "Content" is handled. Done means the heading remains in document order, its top-left corner is not cropped, and a paragraph entered afterward appears below it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100