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

Nextcloud editor mangling reference links #6864

Open
1 of 4 tasks
cosmiczoo opened this issue Jan 20, 2025 · 2 comments
Open
1 of 4 tasks

Nextcloud editor mangling reference links #6864

cosmiczoo opened this issue Jan 20, 2025 · 2 comments
Labels
1. to develop bug Something isn't working

Comments

@cosmiczoo
Copy link

Short summary of the issue

Nextcloud markdown editor quietly changes links in markdown file containing links in the format [[Name of a page]] to [[Name of a page[[

  • Markdown syntax is not properly rendered in text
  • Markdown syntax is removed after closing text
  • Markdown syntax is changed after closing text
  • Something else: Please describe more in detail

Example markdown file

Open a markdown file created in Nextcloud say New text file.md
Contents of file:

This is some text and here is a [[Link to another page]] in Logseq's markdown dialect.

Open in Nextcloud Markdown editor.
The [[ ... ]] references look unchanged in Nextdown editor.
Make no changes to the file.
Close the file.

Resulting markdown file New text file.md after opening in text

This is some text and here is a \[\[Link to another page\]\] in Logseq's markdown dialect.

Screenshot of the rendering in text

Picture of New Text file.md opened in kWrite

Picture of same file opened in Nextcloud web editor

Details

  • Nextcloud version: 30.0.4
  • Ubuntu Server
$ snap list nextcloud
Name       Version      Rev    Tracking       Publisher   Notes
nextcloud  30.0.4snap1  45728  latest/stable  nextcloud✓  -

Preferred solution alternatives

  1. If the syntax is not in the Nextcloud Markdown dialect, make the editor pass through the unsupported text unmodified
  2. If the file is not edited but only read, do not change the file or reinstate the file.
  3. Plug in a suitable alternative markdown editor that is tolerant of foreign markdown.
@cosmiczoo cosmiczoo added the bug Something isn't working label Jan 20, 2025
@juliusknorr
Copy link
Member

Thanks a lot for reporting this and providing all relevant information. @max-nextcloud Do you see any quick way to solve that? Maybe that is an interesting ticket to pair with @JuliaKirschenheuter on text markdown handling and internals.

The syntax is quite common I think so worth to spent some time looking into that I'd say.

@klimpner
Copy link

Obsidian uses the [[Link]] syntax as well, so editing Obsidian files on Nextcloud also renders any links unusable. I would be really glad to see this resolved, because the Text app looks fantastic otherwise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants