dokka icon indicating copy to clipboard operation
dokka copied to clipboard

'greater than' symbol is not rendered in large code blocks

Open sandwwraith opened this issue 1 year ago • 1 comments

Describe the bug When using three-backticks block in the documentation, sign > is not rendered properly:

 * It is also an established pattern to validate input in user's classes in the following manner:
 * ```
 * @Serializable
 * class User(val age: Int, val name: String) {
 *     init {
 *         require(age > 0) { ... }
 *         require(name.isNotBlank()) { ... }
 *     }
 * }
 * ```
 * While clearly being serialization error (when compromised data was deserialized),
 * 
image

I also tried >, but it is rendered literally as > and not as >.

Expected behaviour Sign > should be visible in the screenshot between age and 0

To Reproduce Reproducer also available here: https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-serialization-exception/ (source: https://github.com/Kotlin/kotlinx.serialization/blob/79ecba6e813cc0d59758c9d3f229288b6bd90e8a/core/commonMain/src/kotlinx/serialization/SerializationExceptions.kt#L27)

Dokka configuration Configuration of dokka used to reproduce the bug

dokka = "1.9.20"
gradlePlugin-dokka = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka"}

sandwwraith avatar Sep 02 '24 12:09 sandwwraith

Also affects kotlinx-coroutines: https://youtrack.jetbrains.com/issue/KT-61770

whyoleg avatar Sep 09 '24 07:09 whyoleg

Note: <= is also affected and rendered as a ligature instead of separate symbols. TBD what should be the correct behavior here.

whyoleg avatar Jul 30 '25 14:07 whyoleg