我认为这是因为你可以添加诸如 .rss 这样的内容,所以如果你在括号内以链接结尾,并在后面加上句号,Discourse 会认为整个内容都是 URL 的一部分。
[Link: https://meta.discourse.org/t/new-to-discourse-start-here/1.]:
[Link: https://meta.discourse.org/t/new-to-discourse-start-here/1.]
[Link: https://meta.discourse.org/t/new-to-discourse-start-here/1]:
[Link: New to Discourse? Start here!]
[Link: https://meta.discourse.org/t/new-to-discourse-start-here/1?u=jonathan5.]:
[Link: New to Discourse? Start here!]
(Link: https://meta.discourse.org/t/new-to-discourse-start-here/1.):
(Link: https://meta.discourse.org/t/new-to-discourse-start-here/1.)
Lilly
(Lillian )
2
Lilly
(Lillian )
4
我可能过度解读了你想做的事情。我猜你只是在谈论方括号的随机使用。是的,在 Markdown 链接中,它们偶尔会破坏链接。
这并不完全是 Markdown 的问题,至少根据 https://markdownviewer.org/ 的表现来看并非如此。在那里,句末的 .) 并不被视为 URL 的一部分,但 .] 却被视为 URL 的一部分。
此外,这并不是“随意使用方括号”,而是指将位于句末且被方括号包裹的 URL 作为整体处理。
Lilly
(Lillian )
6
是的,欢迎来到 Markdown 中的方括号趣味世界。除非用代码块包裹,否则我从不使用它们。我想 Discourse 应该能对这些进行转义吧?
Falco
(Falco)
7
david
(David Taylor)
8
要显式指定链接的起止位置,您可以使用尖括号,如下所示:
[Link: <https://meta.discourse.org/t/new-to-discourse-start-here/1>。]
[Link: https://meta.discourse.org/t/new-to-discourse-start-here/1。]
Lilly
(Lillian )
9
是的,我正是这样做的(我想我本该把代码贴出来的,哈哈)
知道了,谢谢!编辑:那个链接可以打开,但没有显示主题标题。我还是选择不加句号吧 
那个链接打不开!
Lilly
(Lillian )
11
谢谢大家。看来这是 Markdown 的问题,而不仅仅是 Discourse 的问题。当括号内的句子以 URL 结尾时,有两种可能的解决方案:
-
用尖括号将 URL 括起来,但这不会将 URL 显示为主题标题,并且在引用时链接无法正常工作。
-
直接省略句号。这就是我在提问之前所做的。