dokka icon indicating copy to clipboard operation
dokka copied to clipboard

Links in annotations does not have a correct target

Open MarcinAman opened this issue 4 years ago • 2 comments

Given code:

package example

@Retention(AnnotationRetention.SOURCE)
@Deprecated(message = "Sample deprecation message that is very long and i want to make it even longer because why not")
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.EXPRESSION, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.PROPERTY])
annotation class SampleClass {
}

Placed in example project, in directory: src/jvmMain/kotlin/example/SampleClass.kt

When user generates a GFM output links to annotations are generated incorrectly, for example to: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-retention/-s-o-u-r-c-e/ rather than: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-retention/-s-o-u-r-c-e.html

MarcinAman avatar Jun 24 '20 13:06 MarcinAman

Any news on this issue?

@AristotelispetrosBobas-TomTom hi! GFM format is in alpha is is not worked on much at the moment. No updates yet, unfortunately.

IgnatBeresnev avatar May 09 '22 14:05 IgnatBeresnev