Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sandwwraith opened this issue Sep 2, 2024 · 1 comment
Open

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

sandwwraith opened this issue Sep 2, 2024 · 1 comment
Labels
bug feedback: Kotlin libs Feedback from Kotlin's internal libraries

Comments

@sandwwraith
Copy link
Member

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 sandwwraith added the bug label Sep 2, 2024
@whyoleg
Copy link
Collaborator

whyoleg commented Sep 9, 2024

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

@whyoleg whyoleg added the feedback: Kotlin libs Feedback from Kotlin's internal libraries label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feedback: Kotlin libs Feedback from Kotlin's internal libraries
Projects
None yet
Development

No branches or pull requests

2 participants