-
-
Notifications
You must be signed in to change notification settings - Fork 721
Description
Fider Cloud or Self Hosted
Fider Cloud
Describe the bug
When links are added to a post or comment in markdown mode, e.g. [link](https://example.com)
, and posted directly they appear correctly in the post or comment. But if a user toggles to rich text mode or clicks "edit" on their post (which opens up the editor in rich text mode), the link will be stripped out.
To Reproduce
Steps to reproduce the behavior:
- Go to a post on the demo board
- Click into the editor to leave a comment, then click the button to "switch to markdown editor"
- Paste the following into the input box:
[link](https://example.com)
- Click the button to "switch to rich text editor"
- See that just the plain text description of the
link
is preserved - Switch back to the markdown editor
- See that the markdown link syntax has been removed
Expected behavior
A clear and concise description of what you expected to happen.
When switching to rich text editor, the link should be displayed as a hyperlink (similar to when it's posted) then when switching back, the original markdown link syntax should be preserved.
Screenshots
If applicable, add screenshots to help explain your problem.
Adding a link in markdown mode:

Link appears successfully if you post directly from markdown mode:

If we click edit, the link disappears in rich text mode, even when we switch back to markdown mode:


Additional context
Add any other context about the problem here.
I have a fix for this that I can put up in a PR after creating this bug ticket. Separately an enhancement might be to add a menu button to insert a link, but I can try to tackle that in a separate PR since it requires changing a few more components.