# 带下划线的链接被连字符包围时渲染不正确

**URL:** <https://meta.discourse.org/t/links-with-underbars-surrounded-by-hyphens-render-incorrectly/97913>\
**Category:** Bug\
**Created:** [2018年九月24日 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:** 3

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2018年九月24日 15:09 UTC](https://meta.discourse.org/t/links-with-underbars-surrounded-by-hyphens-render-incorrectly/97913/3 "2018-09-24T15:09:06Z")

</div>

Known issue with commonmark, we can continue discussion here:

> [@Links broken with (at least) two underscores in URL](https://meta.discourse.org/t/twitter-links-broken-with-at-least-two-underscores-in-username/72976/7):
>
> That’s a known issue: It’s possible to fix, but not easy. Workaround available. Correct solution is to make linkifier part of tokenizer process. That’s expensive (for example, email lookahead check for every character). Tradeoff is to listen : then do look behind for http(s), and lookahead for the rest. That’s not universal, but will cover all real cases: http/https links will be parsed with other tokens, with higher priority than emphasis everything else will be detected via text scan & r…

---

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