Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Notes edit view is showing raw markdown incorrectly

未关闭
#1,770 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript
领域
frontend, web-dev

调研方向

首先,按照报告中针对标题、heading 和 subheading 的步骤,在 Notes Web UI 中复现该问题,然后将编辑视图与下载的 Markdown 和预览进行比较。完成的标准是:编辑视图始终显示原始 Markdown,并按预期突出显示 Markdown 字符,同时预览和下载的文件保持正确。

由索引模型根据 Issue 内容生成。

描述

bug feature: editor need to reproduce

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

主要语言
JavaScript
星标
738
派生
162
平均合并
2 小时 29 分钟
30 天内合并 PR
42

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/notes 的其他 Issue

查看 nextcloud/notes 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。