# סוף המשפט מקושר כאשר יש אפס tlds של markdown linkify

**URL:** https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342
**Category:** Bug
**Tags:** pr-welcome
**Created:** [9 בדצמבר,‏ 2022,‏ 1:19am UTC](https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342 "2022-12-09T01:19:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tanius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tanius/32/135041_2.png) [@tanius](https://meta.discourse.org/u/tanius)
#### Post date: [9 בדצמבר,‏ 2022,‏ 1:19am UTC](https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342/1 "2022-12-09T01:19:37Z")

</div>

To reproduce, make the following two admin settings:

- enable markdown linkify: true
- markdown linkify tlds: none (that is, delete all TLDs that are set by default)

Then do a “Rebuild HTML” for any post that includes a full sentence, and note that the last word at the end of every sentence, and the following dot, is now linkified. Example:

> Wait for the last [word.](https://word.)

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [9 בדצמבר,‏ 2022,‏ 1:26am UTC](https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342/2 "2022-12-09T01:26:30Z")

</div>

I am able to reproduce this, I’ll let our devs know.

In the meantime, please disable `enable markdown linkify` or add a TLD, to get around this. 😆

---

<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: [9 בדצמבר,‏ 2022,‏ 1:44am UTC](https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342/4 "2022-12-09T01:44:14Z")

</div>

> [@tanius](#):
>
> - enable markdown linkify: true
> - markdown linkify tlds: none

This kind of begs the question of “why”? I think the fix I support here is simply not allowing markdown linkify tlds to be empty.

Will put a #pr-welcome to add a validation here.

---

<div class="post-metadata">

### Author: ![tanius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tanius/32/135041_2.png) [@tanius](https://meta.discourse.org/u/tanius)
#### Post date: [9 בדצמבר,‏ 2022,‏ 11:38pm UTC](https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342/6 "2022-12-09T23:38:44Z")

</div>

> [@sam](#):
>
> the fix […] is simply not allowing markdown linkify tlds to be empty

Alternatively, you could allow `markdown linkify tlds` to be empty, but treat that case internally with the same code used when `enable markdown linkify: false` has been set.

> [@sam](#):
>
> This kind of begs the question of “why”?

You’re raising a good point there 😄

I was just experimenting how to get rid of the “convert URL to title of linked page” behavior. Later found it’s called Inline Onebox, and cannot be disabled for Discourse-internal links.

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [10 בדצמבר,‏ 2022,‏ 12:14am UTC](https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342/7 "2022-12-10T00:14:03Z")

</div>

> [@tanius](#):
>
> I was just experimenting how to get rid of the “convert URL to title of linked page” behavior.

I often want URLs to be readable past markdown converters, so I use brackets to do so.

So to link to this topic: [https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342?u=maiki](https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342)

```plaintext
So to link to this topic: <https://meta.discourse.org/t/end-of-sentence-is-linkified-when-there-are-zero-markdown-linkify-tlds/248342?u=maiki>

```

Not sure how standard that is, but it works in all the markdown converters I use. 🙂
