# No Highlighting of Group mentions in Markdown Preview

**URL:** https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184
**Category:** Feature
**Created:** [2016 年 3 月 17 日午前 9:46 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184 "2016-03-17T09:46:41Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)
#### Post date: [2016 年 3 月 17 日午前 9:46 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/1 "2016-03-17T09:46:41Z")

</div>

I just noticed that while usernames have a different style applied in the markdown preview (bold, gray), this is not the case for group mentions. Is this intentional? I consider this as incoherent and suggest to apply either the same style to group mentions in the preview or a different one.

Advantage: Text author is assured that mention is well recognised and functional.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016 年 3 月 17 日午前 10:10 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/2 "2016-03-17T10:10:19Z")

</div>

Please refer to the category description of bug. This is not a bug.

---

<div class="post-metadata">

### Author: ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)
#### Post date: [2016 年 3 月 17 日午前 10:28 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/3 "2016-03-17T10:28:11Z")

</div>

I agree. I thought first this would be only the case for groups with a minus in the name `@blub-blub` and forgot to change the category later on.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016 年 3 月 17 日午前 10:32 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/4 "2016-03-17T10:32:18Z")

</div>

I am really not following

 ![](https://global.discourse-cdn.com/meta/original/3X/3/f/3f4be940947bd8bc74a0d8060d2d23265627ba54.png)

---

<div class="post-metadata">

### Author: ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)
#### Post date: [2016 年 3 月 17 日午前 10:39 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/5 "2016-03-17T10:39:47Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/9/6/96c1f559fb7fb4c01fc1969601fb265ae75f5db5.png)

I updated yesterday.

---

<div class="post-metadata">

### Author: ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)
#### Post date: [2016 年 3 月 17 日午前 10:40 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/6 "2016-03-17T10:40:29Z")

</div>

Once posted, the bold-gray style is applied.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016 年 3 月 17 日午前 10:55 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/7 "2016-03-17T10:55:45Z")

</div>

Does the group allow mentions? what if you call it @beta is it something to do with the dash?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2016 年 3 月 17 日午後 12:59 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/8 "2016-03-17T12:59:12Z")

</div>

I wonder if this fix needed to be applied at a second location too for dealing with the composer preview?  
[https://github.com/discourse/discourse/commit/833af461ab5d9e170306172b68541bd62b09201a](https://github.com/discourse/discourse/commit/833af461ab5d9e170306172b68541bd62b09201a)

It stemmed from  
[https://meta.discourse.org/t/group-mentions-that-begin-with-the-same-characters-may-be-incorrect/39892](https://meta.discourse.org/t/group-mentions-that-begin-with-the-same-characters-may-be-incorrect/39892)

Which had an issue with group names with dahses in them.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2016 年 3 月 27 日午前 3:11 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/9 "2016-03-27T03:11:53Z")

</div>

Looks like this may have gone unfixed?

---

<div class="post-metadata">

### Author: ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)
#### Post date: [2016 年 4 月 12 日午後 2:54 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/10 "2016-04-12T14:54:54Z")

</div>

In the preview my group `@ORGANISATION-Board` is still not highlighted accordingly.

---

<div class="post-metadata">

### Author: ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)
#### Post date: [2016 年 5 月 18 日午前 8:39 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/11 "2016-05-18T08:39:20Z")

</div>

I just updated to the most recent version and the highlighting does not work. ☹

While mentioning `team` here seems to work and it gets a mention-group and notify class attributed, it only gets a mention-tested class in my Discourse instance.

> [@codinghorror](#):
>
> Please refer to the category description of bug. This is not a bug.

I suggest to put this topic back to the bug category.

Group names without a dash are not working either for me. So I kindly ask to test group name mentions with and without dashes at other Discourse instances.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016 年 5 月 18 日午前 9:13 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/12 "2016-05-18T09:13:35Z")

</div>

Sure @techapj can you add this to your list to test maybe next week, can we repro with dashes in the group name?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016 年 5 月 22 日午後 1:16 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/13 "2016-05-22T13:16:43Z")

</div>

This was a legit issue. The issue was: group with name `discourse` was getting highlighted but group with name `Discourse` was not getting highlighted, i.e. mixed case group names were not getting highlighted.

Fixed via:

[https://github.com/discourse/discourse/commit/f387dfe2263ef198701d8876977881ce99fe385c](https://github.com/discourse/discourse/commit/f387dfe2263ef198701d8876977881ce99fe385c)

Thanks for reporting this issue @rriemann 👍

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016 年 5 月 22 日午後 1:16 UTC](https://meta.discourse.org/t/no-highlighting-of-group-mentions-in-markdown-preview/41184/14 "2016-05-22T13:16:53Z")

</div>


