orchidhq / Orchid

Build and deploy beautiful documentation sites that grow with you
https://orchid.run
GNU General Public License v3.0
513 stars 53 forks source link

Code examples in doc comments render incorrectly #350

Closed jhenninger closed 4 years ago

jhenninger commented 4 years ago

For example, the following KDoc comment

/**
 * ```
 * class ExampleApplication : Application {
 *     override val version: String = "1.0.0"
 *     override val name: String = "Example Kotlin Application"
 * 
 *     override fun start(vararg args: String) {
 *         for(i in 1..args.first().toInt()) {
 *             println("$i...")
 *             Thread.sleep(1000)
 *         }
 *     }
 * }
 * ```
 */
class ExampleApplication : Application {

results in:

image

This happens regardless of the used theme.

cjbrooks12 commented 4 years ago

Thanks for the report, I'll take a look and get it fixed shortly.

cjbrooks12 commented 4 years ago

This has been fixed in 0.19.0