Skip to content

Commit

Permalink
Do not wrap description in underscores if it multiline
Browse files Browse the repository at this point in the history
Fixes #65
  • Loading branch information
timtebeek committed Nov 20, 2023
1 parent b1edced commit 1b4472a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,11 @@ class RecipeMarkdownGenerator : Runnable {
@Suppress("SENSELESS_COMPARISON")
if (descriptor != null && descriptor.description != null) {
appendLine()
appendLine("_${descriptor.description}_")
if (descriptor.description.contains("\n") || descriptor.description.contains("_")){
appendLine(descriptor.description)
} else {
appendLine("_${descriptor.description}_")
}
}
appendLine()

Expand Down

0 comments on commit 1b4472a

Please sign in to comment.