# Using # to make title bold makes it a link

**URL:** <https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454>\
**Category:** Product Support\
**Created:** [March 25, 2021, 8:41pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454 "2021-03-25T20:41:34Z")\
**Posts on this page:** 15\
**Page:** 1

## AI-generated summary

The discussion title "Using # to make title bold makes it a link" revolves around the issue of using `#` in front of a word making it a link in Discourse. [Thomas_G](/t/-/184454/1) initially raises this point, mentioning that it used to make a word/sentence a header. [ondrej](/t/-/184454/2) confirms that this is an intentional change.

[Thomas_G](/t/-/184454/3) asks if there's a way to make a header without it becoming a link, which [pfaffman](/t/-/184454/4) thinks is a minor issue. However, [Thomas_G](/t/-/184454/5-6) persists, explaining that the anchor icon is undesirable in their project.

[awesomerobot](/t/-/184454/8) provides a solution by suggesting the use of HTML heading tags (`h1, h2, h3`), which [Thomas_G](/t/-/184454/9) finds helpful. [Thomas_G](/t/-/184454/10) then asks about using a heading tag with a word that works as a link, which [awesomerobot](/t/-/184454/11) confirms is possible.

[Jagster](/t/-/184454/13) expresses concern that using HTML tags breaks the idea of Markdown and asks for a CSS trick to hide the anchor icon. [awesomerobot](/t/-/184454/14) provides a CSS solution to hide the anchor icon.

<div class="post-metadata">

**Author:** ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)\
**Post date:** [March 25, 2021, 8:41pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/1 "2021-03-25T20:41:34Z")

</div>

Hello!

Recently, I found out that using `#` in front of a word makes it work as a link. AFAIK, what it did was to make the word / sentence a header. If that’s intentional, is there any way to make a header similar to the following one without making it a link?

# Hello!

# Hey again.

---

<div class="post-metadata">

**Author:** ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)\
**Post date:** [March 25, 2021, 8:55pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/2 "2021-03-25T20:55:57Z")

</div>

Hi Thomas

That will be because of this feature here - this an intentional change 😀

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

---

<div class="post-metadata">

**Author:** ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)\
**Post date:** [March 25, 2021, 9:00pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/3 "2021-03-25T21:00:54Z")

</div>

I see. Is there any way though to make a header without having it work as a link?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [March 25, 2021, 9:03pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/4 "2021-03-25T21:03:26Z")

</div>

What is it hurting? It seems pretty subtle to me (and I’m excited to see it’s working this way!)

---

<div class="post-metadata">

**Author:** ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)\
**Post date:** [March 25, 2021, 9:16pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/5 "2021-03-25T21:16:03Z")

</div>

Just for something I am working on. I don’t really like the anchor icon to appear every so often.

---

<div class="post-metadata">

**Author:** ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)\
**Post date:** [March 27, 2021, 9:01pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/6 "2021-03-27T21:01:06Z")

</div>

Does anyone have any ideas on how to achieve that? It’s frustrating to see an anchor icon when you don’t need it.

---

<div class="post-metadata">

**Author:** ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)\
**Post date:** [March 30, 2021, 10:47pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/7 "2021-03-30T22:47:21Z")

</div>

Trying hard to get around to it but no luck. Ideas anyone?

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [March 30, 2021, 11:01pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/8 "2021-03-30T23:01:43Z")

</div>

I think you can use HTML heading tags (`h1, h2, h3`), like this:

`<h3>Unlinked header</h3>`

### Unlinked header

---

<div class="post-metadata">

**Author:** ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)\
**Post date:** [March 30, 2021, 11:08pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/9 "2021-03-30T23:08:05Z")

</div>

Of course, how did I miss that? Thank you so much! ❤

---

<div class="post-metadata">

**Author:** ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)\
**Post date:** [March 30, 2021, 11:12pm UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/10 "2021-03-30T23:12:27Z")

</div>

By the way, is it possible to use a heading tag while having a word work as a link?

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [March 31, 2021, 2:55am UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/11 "2021-03-31T02:55:39Z")

</div>

## [Yes](https://meta.discourse.org) it is

```xml
<h2> <a href="https://meta.discourse.org">Yes</a> it is</h2> 

```

but if you’re using HTML to create your headings, you’ll also need to use HTML to create the link

---

<div class="post-metadata">

**Author:** ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)\
**Post date:** [March 31, 2021, 5:48am UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/12 "2021-03-31T05:48:33Z")

</div>

I see. Thanks again! 🤟

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [April 1, 2021, 8:54am UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/13 "2021-04-01T08:54:22Z")

</div>

Somehow using html-tags breaks idea of markdown, IMO.

Is there a CSS-trick or something else to hide anchor icon? Link itself isn’t a problem, but that icon.

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [April 3, 2021, 1:17am UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/14 "2021-04-03T01:17:17Z")

</div>

There’s always a CSS trick 😉, this should do it:

```scss
.cooked, .d-editor-preview {
	h1, h2, h3, h4, h5, h6 {
		&:hover {
			a.anchor {
				&::before {
					display: none;
				}
			}
		}
	}
}

```

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [May 3, 2021, 1:17am UTC](https://meta.discourse.org/t/using-to-make-title-bold-makes-it-a-link/184454/15 "2021-05-03T01:17:30Z")

</div>

Closed on May 3, 2021, 1:17am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
