# Los enlaces con guiones bajos rodeados por guiones se muestran incorrectamente

**URL:** <https://meta.discourse.org/t/links-with-underbars-surrounded-by-hyphens-render-incorrectly/97913>\
**Category:** Bug\
**Created:** [24 Septiembre, 2018 07:52 UTC](https://meta.discourse.org/t/links-with-underbars-surrounded-by-hyphens-render-incorrectly/97913 "2018-09-24T07:52:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [24 Septiembre, 2018 07:52 UTC](https://meta.discourse.org/t/links-with-underbars-surrounded-by-hyphens-render-incorrectly/97913/1 "2018-09-24T07:52:13Z")

</div>

I’m not sure if this is a commonmark issue, a markdown-it issue, or a Discourse issue, but when sharing the link in [this post](https://meta.discourse.org/t/how-not-to-structure-your-database-backed-web-applications/97912), I noticed this edge case with the automatic link detection where the sequence `-_foo_-` breaks it.

This was the original link:

```plaintext
https://blog.acolyer.org/2018/06/28/how-_not_-to-structure-your-database-backed-web-applications-a-study-of-performance-bugs-in-the-wild/

```

Here’s a simplified example:

```plaintext
https://example.org/foo-_bar_-baz

```

And rendered:

[https://example.org/foo-\_bar\_-baz](https://example.org/foo-_bar_-baz)

(And as an image for good measure):

![link-detection-issue-edge-case](https://global.discourse-cdn.com/meta/original/3X/6/d/6d96acc9c13345b491ac847cfb5c083fe582bc41.png)

* * *

As a workaround, to make a link like this go to the right destination, you can always just use a _real_ markdown link like so:

```plaintext
[foo _bar_ baz](https://example.org/foo-_bar_-baz)

```

[foo _bar_ baz](https://example.org/foo-_bar_-baz)

---

_[View the full topic](https://meta.discourse.org/t/links-with-underbars-surrounded-by-hyphens-render-incorrectly/97913)._
