aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/renderers
diff options
context:
space:
mode:
authorKrzysztof Romanowski <romanowski.kr@gmail.com>2020-11-26 13:05:20 +0100
committerGitHub <noreply@github.com>2020-11-26 13:05:20 +0100
commit585178984228a9c2e5bd2af9b675094ac6e3fa46 (patch)
treeeb7f1f56bf429303147a08e3cbb297988fbd80ec /plugins/base/src/main/kotlin/renderers
parent3fe3a934092cd844a6e0b691c87c367b9fc4d5b3 (diff)
downloaddokka-585178984228a9c2e5bd2af9b675094ac6e3fa46.tar.gz
dokka-585178984228a9c2e5bd2af9b675094ac6e3fa46.tar.bz2
dokka-585178984228a9c2e5bd2af9b675094ac6e3fa46.zip
Fixes from scala3doc (#1630)
* Fix problem with ordering in Java api * HtmlRender allow to render html code directly from String
Diffstat (limited to 'plugins/base/src/main/kotlin/renderers')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
index d943fefb..9fbecad3 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -141,6 +141,11 @@ open class HtmlRenderer(
}
}
+ fun FlowContent.withHtml(content: String): Unit = when (this){
+ is HTMLTag -> unsafe { +content }
+ else -> div { unsafe { +content } }
+ }
+
override fun FlowContent.buildPlatformDependent(
content: PlatformHintedContent,
pageContext: ContentPage,