reStructuredText:如何删除超链接后的空格

sbb*_*bbs 3 restructuredtext hyperlink

reStructuredTest 中的超链接如下所示:

\n\n
A hyperlink_ is a reference to a data.\n\n.. _hyperlink: https://en.wikipedia.org/wiki/Hyperlink\n
Run Code Online (Sandbox Code Playgroud)\n\n

这对于像英语这样的语言非常有用,因为每个单词都用空格明确分隔。然而,在其他一些语言中,情况可能并非总是如此。以韩语为例。

\n\n
\n

\xed\x95\x98\xec\x9d\xb4\xed\x8d\xbc\xeb\xa7\x81\xed\x81\xac\xeb\x8a\x94 ...(显然,大量的 CJK字符是StackOverflow 中不允许,因此我将删除所有 CJK(除了绝对必要的部分)。

\n
\n\n

这里,\'\xed\x95\x98\xec\x9d\xb4\xed\x8d\xbc\xeb\xa7\x81\xed\x81\xac\'是一个名词,尾部字符\'\xeb\x8a\ x94\' 是后置词。问题是,如果我尝试使单词 \'\xed\x95\x98\xec\x9d\xb4\xed\x8d\xbc\xeb\xa7\x81\xed\x81\xac\' 成为超链接,我\我有两个选择。

\n\n
    \n
  1. \xed\x95\x98\xec\x9d\xb4\xed\x8d\xbc\xeb\xa7\x81\xed\x81\xac_ \xeb\x8a\x94 ...这会产生类似的输出

    \n\n
    \n

    \xed\x95\x98\xec\x9d\xb4\xed\x8d\xbc\xeb\xa7\x81\xed\x81\xac \xeb\x8a\x94 ...

    \n
    \n\n

    在“超链接”一词后面有一个不需要的空格。

  2. \n
  3. \xed\x95\x98\xec\x9d\xb4\xed\x8d\xbc\xeb\xa7\x81\xed\x81\xac_\xeb\x8a\x94 ...第一个编译器不会将其识别为有效的超链接。
  4. \n
\n\n

我想要一个末尾没有空格的超链接。这可以用 reStructuredText 实现吗?

\n

sbb*_*bbs 5

我认为空格可以用反斜杠转义,\\就像 reStructuredText 的其他语法组件(例如下划线_或冒号):)一样。

\n\n
\xed\x95\x98\xec\x9d\xb4\xed\x8d\xbc\xeb\xa7\x81\xed\x81\xac_\\ \xeb\x8a\x94 \xec\x9e\x90\xeb\xa3\x8c\xeb\xa5\xbc \xea\xb0\x80\xeb\xa6\xac\xed\x82\xac \xec\x88\x98 \xec\x9e\x88\xeb\x8a\x94 \xec\xb0\xb8\xec\xa1\xb0 \xea\xb3\xa0\xeb\xa6\xac\xec\x9d\xb4\xeb\x8b\xa4.\n\n_\xed\x95\x98\xec\x9d\xb4\xed\x8d\xbc\xeb\xa7\x81\xed\x81\xac: https://en.wikipedia.org/wiki/Hyperlink\n
Run Code Online (Sandbox Code Playgroud)\n\n

这将产生所需的输出。

\n