diff --git a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt index 775b3fe..cad8638 100644 --- a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt +++ b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt @@ -839,9 +839,10 @@ class RecipeMarkdownGenerator : Runnable { if (option.valid?.isNotEmpty()?: false) { description += " Valid options: " + option.valid?.joinToString { "`$it`" } } + val example = if (option.example != null) "`${option.example}`" else "" writeln( """ - | `${option.type}` | ${option.name} | $description | `${option.example ?: ""}` | + | `${option.type}` | ${option.name} | $description | $example | """.trimIndent() ) }