Skip to content

Commit 78592d1

Browse files
committed
docs: update stale doc comments referencing removed @\S+ fallback
remarkMentions.ts and remarkChannelLinks.ts still referenced the old 'falls back to generic pattern' behavior that was removed in the mentionPattern.ts change.
1 parent 3efa381 commit 78592d1

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎desktop/src/shared/lib/remarkChannelLinks.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* Remark plugin that detects #channel-name patterns in text nodes and wraps them
33
* in custom HAST `channel-link` elements for styled rendering via react-markdown.
44
*
5-
* When `channelNames` is provided, multi-word channel names (e.g. "my channel")
6-
* are matched first (longest-first to avoid partial matches), then the plugin
7-
* falls back to the generic `#\S+` pattern for unknown channels.
5+
* Only known channel names are highlighted — multi-word names (e.g. "my channel")
6+
* are matched longest-first to avoid partial matches. When no known names are
7+
* provided, nothing is highlighted.
88
*/
99

1010
import { createRemarkPrefixPlugin } from "./createRemarkPrefixPlugin";

‎desktop/src/shared/lib/remarkMentions.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* Remark plugin that detects @mention patterns in text nodes and wraps them
33
* in custom HAST `mention` elements for styled rendering via react-markdown.
44
*
5-
* When `mentionNames` is provided, multi-word display names (e.g. "John Doe")
6-
* are matched first (longest-first to avoid partial matches), then the plugin
7-
* falls back to the generic `@\S+` pattern for unknown mentions.
5+
* Only p-tagged member names are highlighted — multi-word display names
6+
* (e.g. "John Doe") are matched longest-first to avoid partial matches.
7+
* When no known names are provided, nothing is highlighted.
88
*/
99

1010
import { createRemarkPrefixPlugin } from "./createRemarkPrefixPlugin";

0 commit comments

Comments
 (0)