aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/kotlin/Formats/MarkdownFormatService.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/kotlin/Formats/MarkdownFormatService.kt b/core/src/main/kotlin/Formats/MarkdownFormatService.kt
index 794deedd..fc63b2f2 100644
--- a/core/src/main/kotlin/Formats/MarkdownFormatService.kt
+++ b/core/src/main/kotlin/Formats/MarkdownFormatService.kt
@@ -164,12 +164,14 @@ open class MarkdownOutputBuilder(to: StringBuilder,
}
override fun appendBlockCode(language: String, body: () -> Unit) {
+ inCodeBlock = true
ensureParagraph()
to.appendln(if (language.isEmpty()) "```" else "``` $language")
body()
ensureNewline()
to.appendln("```")
appendLine()
+ inCodeBlock = false
}
override fun appendTable(vararg columns: String, body: () -> Unit) {