In Javadoc I can represent a hyperlink as @see <a href="http://google.com">http://google.com</a>
. How can I do this in Kotlin?
Asked
Active
Viewed 6,543 times
27

Adil Hussain
- 30,049
- 21
- 112
- 147

salyela
- 1,325
- 3
- 14
- 26
1 Answers
48
Well, actually, hyperlinks and @see
tags are two separate matters in KDoc, meaning that @see
is only limited to API references:
/**
* @see [Object.toString]
*/
class C
Hyperlinks per se use the regular Markdown syntax (but, unlike JavaDoc, can't be mixed with @see
tags):
/**
* **See Also:** [Google](http://google.com)
*/
class C

Bass
- 4,977
- 2
- 36
- 82
-
Thanks for pointing out about this. Been using `@see` or hyperlink until your answer – mochadwi Nov 15 '21 at 08:04