# 更新或删除 highlight.js 演示链接

**URL:** https://meta.discourse.org/t/update-or-remove-highlight-js-demo-link/304538
**Category:** Bug
**Created:** [2024年四月18日 22:47 UTC](https://meta.discourse.org/t/update-or-remove-highlight-js-demo-link/304538 "2024-04-18T22:47:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![yanokwa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yanokwa/32/105083_2.png) [@yanokwa](https://meta.discourse.org/u/yanokwa)
#### Post date: [2024年四月18日 22:47 UTC](https://meta.discourse.org/t/update-or-remove-highlight-js-demo-link/304538/1 "2024-04-18T22:47:27Z")

</div>

在“设置”中的“突出显示的语言”下，如果您单击链接 [https://highlightjs.org/static/demo](https://highlightjs.org/static/demo/)，它会带您到 [https://highlightjs.org/not-a-cdn](https://highlightjs.org/not-a-cdn)，其中显示……

> 请勿将我们用作 CDN。您不应链接到托管在我们网站上的任何资源。由于滥用我们的资源，我们收到了数百万的无效请求。

也许链接应该是 [https://highlightjs.org/demo](https://highlightjs.org/demo)

我相信这里需要更改的相关字符串（但需要在其他语言中进行更改）。

> <https://github.com/discourse/discourse/blob/60d3a79d40c7fb0a4328fc92f8acb53d5079d17e/config/locales/server.en.yml#L2420>

---

<div class="post-metadata">

### Author: ![biocrusoe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/biocrusoe/32/463361_2.png) [@biocrusoe](https://meta.discourse.org/u/biocrusoe)
#### Post date: [2024年十一月11日 09:42 UTC](https://meta.discourse.org/t/update-or-remove-highlight-js-demo-link/304538/3 "2024-11-11T09:42:10Z")

</div>

我提交了一个 PR 来修复这个问题，感谢您找到代码位置： [UX: fix link to Highlight JS demo by mr-c · Pull Request #29701 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/29701)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2024年十一月11日 09:48 UTC](https://meta.discourse.org/t/update-or-remove-highlight-js-demo-link/304538/4 "2024-11-11T09:48:29Z")

</div>

您唯一需要更改的文件是 server.en.yml。其他文件将在 Crowdin 的翻译合并时进行更改。

> <https://github.com/discourse/discourse/blob/61a4229dafdf67a4154ecae7286026360d8e4827/config/locales/server.ar.yml#L1-L5>

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2024年十一月11日 19:42 UTC](https://meta.discourse.org/t/update-or-remove-highlight-js-demo-link/304538/5 "2024-11-11T19:42:36Z")

</div>

PR 已合并，感谢 @biocrusoe，也感谢 @yanokwa 的报告。关闭。

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2024年十一月11日 19:42 UTC](https://meta.discourse.org/t/update-or-remove-highlight-js-demo-link/304538/6 "2024-11-11T19:42:39Z")

</div>


