Skip to content

Conversation

widal001
Copy link
Contributor

@widal001 widal001 commented Oct 3, 2025

Summary

Issue: Fixes: #1370

Uses new npm dependency @tiptap/extension-link to fix link rendering. Previously links would be stripped from the editor in rich text mode. This extension allows users to:

  • Insert links using markdown syntax in markdown mode
  • Paste links directly in rich text mode
  • Preserve links when toggling between modes

Validation

Here's a loom explaining the current bug and highlighting the new fix

Notes

  • Testing: I didn't see an existing file for testing the CommentEditor component, but I might have missed it. I tried creating a new test file but wasn't having a little trouble hooking it into the existing test harness. If you want an accompanying unit test, I can spend bit more time on getting it to work!
  • Link menu button: Now that links are working in rich text mode, it might be nice to add a link button to the MenuBar component, but I was trying to keep the surface area of this PR pretty small. If it would be helpful to add that link button I can try to tackle that in a separate enhancement PR.
  • Linking the issue: I used the "Fixes" keyword to link this PR to the related issue. If you'd prefer to not have them linked directly I can edit the PR description.

Uses new npm dependency @tiptap/extension-link to fix link rendering
Previously links would be stripped from the editor in rich text mode
This extension allows users to:
- Insert links using markdown syntax in markdown mode
- Paste links directly in rich text mode
- Preserve links when toggling between modes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Markdown links are removed when toggling to rich text mode
1 participant