Skip to content

Commit

Permalink
Markdown tables and lists don't mix well
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 13, 2023
1 parent 3ab4c64 commit 597f1a5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -836,11 +836,8 @@ class RecipeMarkdownGenerator : Runnable {
"[${match.value}](/reference/method-patterns.md)"
}
// Add valid options to description
if (option.valid != null && option.valid.isNotEmpty()) {
description += "\n\nValid options:\n"
option.valid.forEach { validOption ->
description += "* `$validOption`\n"
}
if (option.valid?.isNotEmpty()?: false) {
description += " Valid options: " + option.valid?.joinToString { "`$it`" }
}
writeln(
"""
Expand Down

0 comments on commit 597f1a5

Please sign in to comment.