nextcloud / nextcloud/text

Text "Content" in headline breaks order of elements in Markdown editor

Open
#6,753 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. Create new .md file
  2. Enter a pagraph and line berak
  3. 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
Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.