reStructuredText 可以执行以下 Markdown 的操作吗:
Here is some [text][1] with [links][2].
[1]: http://example.com/
[2]: http://example.org/
Run Code Online (Sandbox Code Playgroud)
即,将超链接文本显式绑定到具有自定义标签(本例中为数字)的目标?
看看我是怎么做的:
.. _`docutils`: http://docutils.sourceforge.net/
`docutils`_ is best extensible plain text markup in the world!
Run Code Online (Sandbox Code Playgroud)
对于就地链接:
`Installation instructions <INSTALL.html>`_
Run Code Online (Sandbox Code Playgroud)
对于脚注:
See [RFC822]_ for mail format.
.. [RFC822] http://www.ietf.org/rfc/rfc0822.txt
Run Code Online (Sandbox Code Playgroud)
更新。对于谁反对直接回答问题(这表明 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_>`_.
Run Code Online (Sandbox Code Playgroud)
享受!
| 归档时间: |
|
| 查看次数: |
129 次 |
| 最近记录: |