Rich Text Editor does not Insert Links with Proper Markedown [title](url...)
NC Notes Rich Text Editor does not insert links with proper Markdown syntax
Steps to reproduce
- Create Note, choose Insert Link
- Type URL
Expected behaviour
Tell us what should happen
"Markdown" format for a link is [text to display](URL...) which will display "text to display" with hyperlink to "URL...". When entering a link in NC Notes, the user should have the ability to insert "text to display" as well as the URL. For markdown link reference, see the Wikipedia link Markdown that the Notes Readme.md references.
(and curiously, simply copying a link and pasting here in this new Issue on github uses the proper markdown syntax... for the link)
Actual behaviour
Tell us what happens instead
Instead of allowing input of text to display and inserting the link with proper markdown format, NC Notes places the URL between < url... > and displays only the raw URL followed by rectangular box containing the link at the page title (if available) in Rich Text Editor Mode, and displays only the raw URL in Preview mode.
Screenshots
If applicable, add screenshots to help explain your problem.
Attempting to enter a link to https://www.mysite.com with the text to display as "mysite" is impossible in Rich Text Mode. Instead you enter the link and are left with:
Attempting to enter a link in proper markdown format in Rich Text Mode fails, e.g.
(note: how NC crams the URL between < ... > inside the attempted proper markdown format and escapes the \[ ... \] of the proper markdown)
It's only after changing "Note Settings" to display in Preview/Edit mode that you can fix the incorrect markdown format inserted by NC Notes in Rich Text Mode, e.g.
Now, finally, the link displays properly in BOTH Preview and Rich Text Mode:
Server
Please complete the following information.
- Notes app version: 4.8.1
- Nextcloud version: 27.1.2
- OS: Archlinux: 6.5.7-arch1-1
- Web server: Apache / 2.4.57 (Unix)
- PHP version: PHP / 8.1.23
- Database: mariadb / 11.1.2-1
Nextcloud configuration:
</details>
## Client
Please complete the following information.
- Browser (incl. version): Firefox 115.3.1esr (64-bit)
- OS: Archlinux
## Log files
N/A