4

reStructuredText 可以做以下 Markdown 所做的事情:

Here is some [text][1] with [links][2].

[1]: http://example.com/
[2]: http://example.org/

即将超链接文本显式绑定到具有自定义标签的目标(在这种情况下为数字)?

4

1 回答 1

0

看看我是怎么做的:

.. _`docutils`: http://docutils.sourceforge.net/

`docutils`_ is best extensible plain text markup in the world!

对于就地链接:

`Installation instructions <INSTALL.html>`_

对于脚注:

See [RFC822]_ for mail format.

.. [RFC822] http://www.ietf.org/rfc/rfc0822.txt

更新。对于谁拒绝直接回答问题(这表明 Markdown 的能力不如 ReST):

.. _RFC822: http://www.ietf.org/rfc/rfc0822.txt

.. _alias:  RFC822_

Please read `RFC822`_.

Please read `alias`_.

Please read `RFC 822 <RFC822_>`_.

Please read `RFC 822 <alias_>`_.

享受!

于 2014-04-06T11:27:20.757 回答