mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +08:00
When typing a URL with an anchor that matches an existing tag (e.g., `discourse.org/#music` where `music` is a tag), the hashtag autocomplete would incorrectly appear and could convert the anchor into a hashtag node. This fix addresses the issue with two complementary changes: 1. Remove `/` from the allowed preceding characters for autocomplete triggers, preventing `/#` sequences from initiating autocomplete 2. Add `inLink()` checks in both the autocomplete trigger rule and the hashtag input rule to skip hashtag processing when the cursor is inside a link mark Ref - t/172925 |
||
|---|---|---|
| .. | ||
| src | ||
| addon-main.cjs | ||
| package.json | ||