Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown files (opened from webdav) are shown as codeblock #6857

Open
gbraad opened this issue Dec 15, 2024 · 1 comment
Open

Markdown files (opened from webdav) are shown as codeblock #6857

gbraad opened this issue Dec 15, 2024 · 1 comment
Labels
bug Something isn't working need to reproduce

Comments

@gbraad
Copy link

gbraad commented Dec 15, 2024

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: Mount taildrive shares gbraad-homelab/personal-nextcloud#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.

@gbraad gbraad added bug Something isn't working need to reproduce labels Dec 15, 2024
@gbraad
Copy link
Author

gbraad commented Dec 15, 2024

Just tried it from another workstation; Fedora 41 with Vivaldi, and notice that this happes during the preview. It immediately modifies the file.

Here I did a git reset --hard and see that Nextcloud chnaged the file and complains about the modification (being restored).

Image

This I have not seen on a local Project folder that is viewed in Nextcloud's interface.


Just browsed to another project folder and can see it happen. It first renders correctly, and then modifies the file on the fly with a code block. The file is NOT modified on disk, but swaps from a correct rendering to a full codeblock. I'll try to record this tomorrow, as I will try to see if the browser on Windows also does this. If the file is then opened with the editor, it gets modified on disk.


Recording.2024-12-17.015340.mp4
Recording.2024-12-17.015724.mp4

@joshtrichards joshtrichards transferred this issue from nextcloud/notes Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need to reproduce
Projects
None yet
Development

No branches or pull requests

1 participant