Skip to content

fix: enhance newline handling in mention input#68

Merged
Alexanderdunlop merged 1 commit intomainfrom
fix-newlines
Aug 19, 2025
Merged

fix: enhance newline handling in mention input#68
Alexanderdunlop merged 1 commit intomainfrom
fix-newlines

Conversation

@Alexanderdunlop
Copy link
Owner

Related Bug Reports or Discussions

Fixes #66

Summary

- Updated `extractMentionData` to correctly handle newlines from <br> and empty <div> elements.
- Improved `reconstructFromDataValue` to convert newlines to HTML <br> tags.
- Added tests to ensure newlines are preserved and extracted correctly in various scenarios.
@vercel
Copy link

vercel bot commented Aug 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mentis-docs Ready Ready Preview Comment Aug 19, 2025 8:25am

@Alexanderdunlop Alexanderdunlop merged commit 6ad1c4b into main Aug 19, 2025
3 checks passed
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.

1 participant