在markdown中添加本地引用

时间:2015-03-12 05:27:38

标签: markdown

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

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);

1 个答案:

答案 0 :(得分:0)

我不完全确定你要求的是什么,但我 非常确定Markdown本身不会这样做。 Markdown为very simple

  

Markdown的想法是让阅读,编写和编辑散文变得容易。

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

根据您的需求,您可以使用内联HTML来实现它们:

  

对于Markdown语法未涵盖的任何标记,您只需使用HTML本身。没有必要为它添加前缀或分隔它以表明您正在从Markdown切换到HTML;你只需使用标签。

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