From a11a8dd92fcccff770d6893f27c3546fef17655d Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Sun, 19 Jun 2022 17:29:45 +0200 Subject: Dont escape text inside gfm code blocks (#2541) --- .../documentables/PageContentBuilder.kt | 2 +- .../dokka/gfm/renderer/CommonmarkRenderer.kt | 14 ++++++-- .../test/kotlin/renderers/gfm/CodeWrappingTest.kt | 39 ++++++++++++++++++++-- 3 files changed, 50 insertions(+), 5 deletions(-) diff --git a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt index 363b6a3f..02b2e0d9 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt @@ -382,7 +382,7 @@ open class PageContentBuilder( } fun codeInline( - language: String, + language: String = "", kind: Kind = ContentKind.Main, sourceSets: Set = mainSourcesetData, styles: Set