0xb*_*7ed 3 kotlin kdoc kotlin-dokka
试图用一个非常常规的结构来记录一些Kotlin代码:
据我所知,嵌套四个空格的额外缩进有效:
/**
* 1. A numbered list.
* * With a bulleted sublist.
* 1. Where the numbers continue correctly at the top level of the list.
*/
val foo: Int = 0
Run Code Online (Sandbox Code Playgroud)
结果是:
Dokka 使用 markdown,它有一些分支和风格,根本没有标准化,但这是有效的:
/**
* list:
* - item1
* - item2
*
* numbered:
* 1. one
* 2. two
*/
Run Code Online (Sandbox Code Playgroud)