在 Markdown 中的 (html) 注释块中嵌入链接

发布于 2025-01-13 18:48:12 字数 242 浏览 4 评论 0原文

有没有一种方法可以将超链接嵌入到(github)markdown 文件的评论部分?

用法示例:

<!-- Please read the code of conduct before submitting, [code_of_conduct](https://link.to.code_of_conduct) -->

Is there a way we can embed hyperlink into the comment section of a (github) markdown file?

Example usage:

<!-- Please read the code of conduct before submitting, [code_of_conduct](https://link.to.code_of_conduct) -->

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

撧情箌佬 2025-01-20 18:48:12

在使用 GitHub Web 编辑器测试各种注释 markdown 语法后,它们都没有呈现为“可点击的链接”

,例如 < code>[ https://google.com ]::,当可编辑时,仍呈现为文本,如果您需要访问其 URL,则可以复制粘贴。

After testing various comment markdown syntaxes, using GitHub web editor, none of them are rendered as "clickable links"

For instance, [ https://google.com ]::, when editable, is still rendered as text, to be copy-pasted if you need to access its URL.

小…红帽 2025-01-20 18:48:12

嘿,你需要在命令之前休息一下。我刚刚遇到了同样的问题,这对我来说在 Github 上有效。

随机文本“输入”

“[code_of_conduct]”“(https://link.to.code_of_conduct)”“输入”
随机文本

Hey you need to put a break before the command. I just had the same issue and this works for me on Github.

Random text "enter"

"[code_of_conduct]""(https://link.to.code_of_conduct)" "enter"
Random text

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文