在 markdown 中添加本地引用

adding local references in markdown

如何在markdown语言中添加本地引用?例如,我首先需要将以下代码转换为降价。

Admin Operations
----------------
.. note:: You need to create an admin session in order to perform admin operations.

- :java:ref:`Create Account <com.xxx.yyy.client.Admin.createAccount(String, String, String, String, String)>`

  You can create end users for an admin/paid account.

  ::

    Profile profile = adminSession.getAdmin().createAccount(username, password, email, firstName, lastName);

我不完全确定您要的是什么,但我很确定 Markdown 本身不会这样做。降价是 very simple:

The idea for Markdown is to make it easy to read, write, and edit prose.

它故意缺少其他标记语言中的许多功能,包括任何类型的交叉引用。

具体取决于您的需求,您可以使用内联 HTML 来实现它们:

For any markup that is not covered by Markdown’s syntax, you simply use HTML itself. There’s no need to preface it or delimit it to indicate that you’re switching from Markdown to HTML; you just use the tags.

另请参阅:How to link to a named anchor in Multimarkdown?