# Zorg ervoor dat links met )) nog steeds correct worden weergegeven en werken

**URL:** https://meta.discourse.org/t/ensure-that-links-containing-still-render-and-work-correctly/335205
**Category:** Bug
**Tags:** pr-welcome
**Created:** [8 november 2024 om 16:22 UTC](https://meta.discourse.org/t/ensure-that-links-containing-still-render-and-work-correctly/335205 "2024-11-08T16:22:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [8 november 2024 om 16:22 UTC](https://meta.discourse.org/t/ensure-that-links-containing-still-render-and-work-correctly/335205/1 "2024-11-08T16:22:34Z")

</div>

## ℹ Overview

Discourse does not properly render links when they contain double close parentheses — `))` — which means these links don’t work properly when added directly or when pasted over text to create an automatic text link.

## 🚶‍♀️ Steps to reproduce

1. Create a link that contains `))` somewhere in the middle of the URL. For example, `meta.discourse.org/?parameter_one=((value))&parameter_two=value`.
2. Paste this into the composer, as-is.
3. Paste the same URL over text to create an automatic text link.

## ✅ Expected results

The original link should render and function correctly in both cases.

## ❌ Observed results

The link functionality cuts off at the `))` and the rest of the URL is dropped.

Examples:

- [Discourse Meta](http://meta.discourse.org/?parameter_one=((value)))&parameter\_two=value

- [Text link]([Discourse Meta](http://meta.discourse.org/?parameter_one=((value)))

## 📚 Additional context

When pasting a link directly, encoding the double close parentheses as `%29)` may work, as well as encapsulating the URL in `<>` when pasting over text. Examples:

- [Discourse Meta](http://meta.discourse.org/?parameter_one=((value)%29&parameter_two=value)
- Text link

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [10 november 2024 om 02:02 UTC](https://meta.discourse.org/t/ensure-that-links-containing-still-render-and-work-correctly/335205/2 "2024-11-10T02:02:52Z")

</div>

I don’t think we can fix this @lindsey this is a behavior in markdown-it, and more exactly in the underlying linkify library.

You can test this behavior here: [linkify-it demo](https://markdown-it.github.io/linkify-it/)

Themselves have an open issue for more than 8 years on the subject: [Better handle nested parens · Issue #23 · markdown-it/linkify-it · GitHub](https://github.com/markdown-it/linkify-it/issues/23)

---

<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: [11 november 2024 om 23:09 UTC](https://meta.discourse.org/t/ensure-that-links-containing-still-render-and-work-correctly/335205/5 "2024-11-11T23:09:34Z")

</div>

@Vitaly thoughts? Should we be forking linkify to fix this or wait for upstream? Can we contract you to fix this issue?
