Markdown 什么';这是标记命名链接的rst等价物?
在markdown中,我可以这样做:Markdown 什么';这是标记命名链接的rst等价物?,markdown,restructuredtext,Markdown,Restructuredtext,在markdown中,我可以这样做: Imagine a long paragraph here, with [an extended phrase linked to something elsewhere][shortref]. [shortref]: http://really-long-and-annoying-link-here StructuredText中的等效语法是什么?您可以使用替换和对相应超链接目标的引用来定义 Imagine a long paragraph here,
Imagine a long paragraph here, with [an extended phrase linked
to something elsewhere][shortref].
[shortref]: http://really-long-and-annoying-link-here
StructuredText中的等效语法是什么?您可以使用替换和对相应超链接目标的引用来定义
Imagine a long paragraph here, with |SR|_.
.. |SR| replace:: an extended phrase linked to something elsewhere
.. _SR: http://really-long-and-annoying-link-here
另一个选项不是完全等效的,但仍然很接近:
Imagine a long paragraph here, with `an extended phrase linked
to something elsewhere`_.
Here is a short reference link: `shortref`_.
.. _shortref: `an extended phrase linked to something elsewhere`_
.. _an extended phrase linked to something elsewhere: http://really-long-and-annoying-link-here
上面的示例使用了以下方法的组合