Replies: 1 comment
-
Hey @bora-fish! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together! 😊 The issue you're encountering with underscores in mention nodes might be related to how the regex pattern is handling valid characters within mentions. The To address this, you might need to adjust the regex pattern used for detecting mentions to ensure underscores are included as valid characters. This can typically be done by modifying the If you have access to the regex pattern or the |
Beta Was this translation helpful? Give feedback.
-
When selecting a menu item, the Beautiful Mention displays correctly
However when I re-enter the component with the same values, the Beautiful Mention is cutoff at the _ character.
I'm using
$convertToMentionNodes(initialValue, triggers)
to convert my initial value toTextNodes
andBeautifulMentionNodes
.I've tried disabling allowSpaces, and I tried messing around with
punctuation
andpreTriggerChars
settings to no avail. Seems like I would need to tweak the regex somehow.Has anyone run into this?
Beta Was this translation helpful? Give feedback.
All reactions