How to represent hyperlink in KDoc

7.5k views Asked by At

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?

1

There are 1 answers

1
Bass On BEST ANSWER

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