nextcloud / nextcloud/text

Markdown files (opened from webdav) are shown as codeblock

Open
#6,857 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug need to reproduce
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

I use webdav to connect to remote folders, like using Tailscale drive shares. When opening a project folder containing a README.md, the preview shows a grey codeblock, and when opened this is confirmed. When clicking the codeblock toggle, the whole file disappears.

Steps to reproduce

  1. Mount remote webdav: https://github.com/gbraad-homelab/private-nextcloud/issues/5
  2. Locate the folder containing a project README: https://github.com/gbraad-gaming/private-cardforge/blob/main/README.md
  3. Open editor, see attachment
Expected behaviour

Folder preview should render the file correctly, and editor should interpret the file correctly.

Actual behaviour

The whole file is seen as a codeblock. The codeblock toggle will remove all content and no Undo is possible.

Screenshots

Image

Server

Please complete the following information.

  • Notes app version: 4.11.0
  • Nextcloud version: 3.0.4
  • OS: Fedora 41
  • Web server: apache
  • PHP version: 8.3.14
  • Database: sqlite

Nextcloud configuration:

``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder ```

Client

Please complete the following information.

  • Browser (incl. version): Vivaldi
  • OS: Android

Log files

Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.

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 by opening the linked WebDAV folder and its README.md, then inspect the editor and folder-preview entry points that handle Markdown opened from a remote location. Verify that the preview renders Markdown, the editor preserves its content, and the codeblock toggle no longer removes the file.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.