例子:
foo is a tool used to do foo.
Download_
.. _Download: http://example.com/foo
blah blah blah (omit a lot of paragraphs)
bar is another tool to do bar.
Download_
.. _Download: http://example.com/bar
由于Download
指向不同的 url,docutilus 给出了这个错误报告:
Duplicate target name, cannot be used as a
unique reference: "Download".
在 markdown 中,我可以为这两个指定不同的 id Download
:
[Download][download-foo]
[download-foo]: http://example.com/foo
[Download][download-bar]
[download-bar]: http://example.com/bar
如何在 reStructuredText 中做类似的事情?