# Auto-Linkify Words

**URL:** https://meta.discourse.org/t/auto-linkify-words/82193
**Category:** Theme component
**Tags:** official, linkify-words
**Created:** [March 5, 2018, 7:16am UTC](https://meta.discourse.org/t/auto-linkify-words/82193 "2018-03-05T07:16:06Z")
**Posts on this page:** 1
**Showing post:** 206

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [May 9, 2022, 12:42am UTC](https://meta.discourse.org/t/auto-linkify-words/82193/206 "2022-05-09T00:42:09Z")

</div>

Has something been done to allow pipes?

I’m currently using this as a workaround:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/7/0/e/70ea59f0dba3c167af3794fc8ebe915d394387f2.png)

* * *

Also, is there a way to exclude a world from being linkified when inside a grand-grand-[…]children of an **excluded class**?  
I’m building a forum with a Documentation category, and I don’t want linkified words in it because it would be redundant: words in other categories will be linkified and will link to topics in this documentation category.  
Plus, linkified words open in a new window.

So, this didn’t work:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/8/e/6/8e6dfda82b59ff9eb640c5071b6929306c46adf0.png)

Here’s an example of the issue I’m facing. This is the part of a text inside a documentation topic.

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/9/e/69e81964e12e9dfa5fad41982e5d3dd10e2a7545.jpeg)

If I click **22° halo** , it will open a page that links to… The same page, at the same place.  
I can exclude words in titles, especially because it contains a [table of content](https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143), but the following paragraphs don’t have any specific class. They are regular paragraphs.

* * *

Maybe the **excluded class** setting could accept CSS selectors?  
For example, `d-toc-cooked > *`

* * *

edit: Also I fail to understand why this doesn’t work since my word is a direct child of an excluded class:

![image](https://global.discourse-cdn.com/meta/original/4X/5/b/7/5b74ab625d4676e33aebf3c9cbe825e3d0f22c44.png)

The “22° Halo” is still linkified:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/1/b/71b9ede267725c4f07d71ea6c10a3f5f6fbd18e1.png)

```xml
<h3 id="toc-h3-22-halo" data-d-toc="toc-h3-22-halo" class="d-toc-post-heading">
    <a name="h-22-halo-7" class="anchor" href="#h-22-halo-7"></a>
    <a href="https://discourse.canapin.com/t/ice-halos-information-and-list/28#h-22-halo-7" rel="nofollow" target="_blank" class="linkify-word no-track-link">22° Halo</a>
</h3>

```

Is that because the table of content HTML code could be generated _after_ the “linkification”?

---

_[View the full topic](https://meta.discourse.org/t/auto-linkify-words/82193)._
