Problem
When a comment contains one or more @mentions, the surrounding plain text is not rendered for users who receive the notification — only the mention itself (@name) is visible.
Root cause
In renderContentWithMentions, plain text segments between mentions were pushed as raw strings into the parts array:
parts.push(content.slice(lastIndex, match.index)); // raw string
Problem
When a comment contains one or more @mentions, the surrounding plain text is not rendered for users who receive the notification — only the mention itself (@name) is visible.
Root cause
In renderContentWithMentions, plain text segments between mentions were pushed as raw strings into the parts array:
parts.push(content.slice(lastIndex, match.index)); // raw string