nextcloud / nextcloud/notes

Notes edit view is showing raw markdown incorrectly

Open
#1,770 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: editor need to reproduce
Dominant language
JavaScript
Stars
738
Forks
162
Avg merge
6h 2m
Merged PRs (30d)
35

Description

Steps to reproduce

  1. Create a new note using the web UI
  2. Add a title, heading and subheading
  3. Notice how additional lines are added in the edit view
  4. View the preview, notice how this looks correct
  5. Download the file and look at in a text editor
  6. Notice how this looks as expected
Expected behaviour

The edit view has previously shown the raw markdown but with the markdown characters highlighted in grey.

Actual behaviour

Additional lines are now added which are confusing and do not match the raw markdown.
I have tested this on multiple Windows PC's running both Firefox and Edge and am seeing the same issue.
This appears to have occured since I updated a very old instance of Nextcloud to the version listed below.
I was at least two versions behind.

Screenshots

Gif showing the issue
Image

Downloaded file in notepad showing the raw markdown is as expected.
Image

Server

Please complete the following information.

  • Notes app version: 4.13.0
  • Nextcloud version: Nextcloud Hub 25 Autumn (32.0.6)
  • OS: NextcloudPi v1.56.0 (Debian GNU/Linux 12. 6.1.21-v8+ (aarch64))
  • Web server: Unknown
  • PHP version: Unkonwn
  • Database: MariaDB

Nextcloud configuration:

{ "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": { "0": "localhost", "5": "nextcloudpi.local", "7": "nextcloudpi", "8": "nextcloudpi.lan", "1": "192.168.1.66", "11": "***REMOVED SENSITIVE VALUE***", "4": "***REMOVED SENSITIVE VALUE***", "12": "***REMOVED SENSITIVE VALUE***", "3": "***REMOVED SENSITIVE VALUE***", "": "***REMOVED SENSITIVE VALUE***", "14": "nextcloudpi" }, "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "32.0.6.1", "overwrite.cli.url": "https:\/\/digitaljoat.no-ip.org\/", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "memcache.local": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0, "password": "***REMOVED SENSITIVE VALUE***" }, "tempdirectory": "\/media\/USBdrive\/ncdata\/tmp", "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "overwriteprotocol": "https", "loglevel": "2", "log_type": "file", "maintenance": false, "logfile": "\/media\/USBdrive\/ncdata\/nextcloud.log", "jpeg_quality": 60, "preview_max_x": 2048, "preview_max_y": 2048, "theme": "", "data-fingerprint": "7c55a7e197b64b9966ffcf606dd8c9a5", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "mail_sendmailmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpauth": 1, "mail_smtpsecure": "ssl", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "memories.db.triggers.fcu": true, "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-aarch64-glibc", "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-aarch64", "maintenance_window_start": 3, "default_phone_region": "GB" } }

Client

Please complete the following information.

  • Browser (incl. version): Firefox 148 Edge 145.0.3800.82 (Official build) (64-bit)
  • OS: Windows 11

Log files

None

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

Start by reproducing the issue in the Notes web UI using the reported title, heading, and subheading steps, then compare the edit view with the downloaded markdown and preview. Done means the edit view shows the raw markdown consistently, with markdown characters highlighted as expected, while the preview and downloaded file remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.