# 请不要在 Markdown 中粘贴 URL 时重复链接

**URL:** <https://meta.discourse.org/t/please-dont-double-link-urls-if-one-pastes-over-a-url-in-markdown/210793>\
**Category:** Bug\
**Created:** [2021 年12 月 2 日 00:24 UTC](https://meta.discourse.org/t/please-dont-double-link-urls-if-one-pastes-over-a-url-in-markdown/210793 "2021-12-02T00:24:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)\
发布日期： [2021 年12 月 2 日 00:24 UTC](https://meta.discourse.org/t/please-dont-double-link-urls-if-one-pastes-over-a-url-in-markdown/210793/1 "2021-12-02T00:24:28Z")

</div>

继续讨论 [想法：在编辑器中粘贴链接](https://meta.discourse.org/t/idea-paste-links-in-the-editor/47125/20)：

我刚刚遇到了这个问题，这让我非常抓狂。我帖子里的一个链接指向了错误的地方：

```plaintext
[正确的地方](https://example.org/the-wrong-url)

```

我注意到了，然后复制了正确的 URL，`https://example.org/the-right-place`，然后粘贴了它，结果却令人困惑：

```plaintext
[正确的地方]([https://example.org/the-wrong-url](https://example.org/the-right-place))

```

嗯。我想。让我再试一次。这是 Firefox/Wayland 的某个新粘贴错误吗？所以我再次选中了 `()` 之间的部分，然后……

```plaintext

[正确的地方]([[https://example.org/the-wrong-url](https://example.org/the-right-place)](https://example.org/the-right-place))

```

天哪，太困惑了！！！1

然后我偶然想起来，前几天我偶然滚动看到了上面链接的主题。我很高兴我看到了，因为我敢肯定，如果没看到，我会比一个 supposed to be smart 的人希望的更困惑更长时间。

这个代码能不能 _至少_ 调整一下，不要这样对待文本，而文本是一个 Markdown 链接，但实际上可能永远不要对任何 URL 做这种事，因为

```plaintext
[https://example.org/the-wrong-url](https://example.org/the-right-place)

```

似乎不是任何人应该被鼓励去做的事情——更不用说被软件试图在错误的时间提供帮助而欺骗去做。

---

_[View the full topic](https://meta.discourse.org/t/please-dont-double-link-urls-if-one-pastes-over-a-url-in-markdown/210793)._
