diff options
author | Krzysztof Romanowski <romanowski.kr@gmail.com> | 2020-11-26 13:05:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 13:05:20 +0100 |
commit | 585178984228a9c2e5bd2af9b675094ac6e3fa46 (patch) | |
tree | eb7f1f56bf429303147a08e3cbb297988fbd80ec /plugins | |
parent | 3fe3a934092cd844a6e0b691c87c367b9fc4d5b3 (diff) | |
download | dokka-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')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 5 |
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, |