4

In JavaDoc you can add an image like this:

/**
 * ...The following legend explains these diagrams:
 * <img width="640" height="577" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.png" alt="">
 */
public class Test {
}

How can I achieve the same thing in Kotlin Kdoc?

Ultimo_m
  • 4,724
  • 4
  • 38
  • 60
  • I don't think it's possible to put images. Kdoc is much more limited than Javadoc for some reason, and HTML is not supported. – Tenfour04 Oct 14 '21 at 15:15
  • I agree with you, but maybe this question will stay as a relic of how much time Kotlin will need to add this feature and someone will answer, hey there is a solution now – Ultimo_m Oct 15 '21 at 10:58
  • Kdoc does not currently support inline images like JavaDoc. https://youtrack.jetbrains.com/issue/KTIJ-13687/KDoc-support-inline-images – psrustik Dec 14 '22 at 08:21

0 Answers0