aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorSimon Ogorodnik <sem-oro@yandex.ru>2016-11-08 21:32:00 +0300
committerGitHub <noreply@github.com>2016-11-08 21:32:00 +0300
commit32cfff6d3dcb099e891e56b969c3c561d8fd9769 (patch)
tree7d7f47715c8e99c0427369ee3747bf35e41f7216 /core/src/main
parent15f76be0f994e2ebc13b1c461334ec9c84821cca (diff)
downloaddokka-32cfff6d3dcb099e891e56b969c3c561d8fd9769.tar.gz
dokka-32cfff6d3dcb099e891e56b969c3c561d8fd9769.tar.bz2
dokka-32cfff6d3dcb099e891e56b969c3c561d8fd9769.zip
Fix for KT-14603 Do not escape html inside code blocks in markdown (#112)
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) {