diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-04-08 16:23:19 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-04-22 13:10:48 +0200 |
commit | 5a72f4a7e63d96f98072bf3989373592c2b906c2 (patch) | |
tree | 202f5f86cd8e3b50cd93bf1b8c2bdc02788fed92 /plugins/gfm/src/main | |
parent | 089113e352ecd49216602bb1a02fbfada6a40788 (diff) | |
download | dokka-5a72f4a7e63d96f98072bf3989373592c2b906c2.tar.gz dokka-5a72f4a7e63d96f98072bf3989373592c2b906c2.tar.bz2 dokka-5a72f4a7e63d96f98072bf3989373592c2b906c2.zip |
Apply requested changes
Diffstat (limited to 'plugins/gfm/src/main')
-rw-r--r-- | plugins/gfm/src/main/kotlin/GfmPlugin.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/gfm/src/main/kotlin/GfmPlugin.kt b/plugins/gfm/src/main/kotlin/GfmPlugin.kt index 185dacac..c65f3673 100644 --- a/plugins/gfm/src/main/kotlin/GfmPlugin.kt +++ b/plugins/gfm/src/main/kotlin/GfmPlugin.kt @@ -1,6 +1,5 @@ package org.jetbrains.dokka.gfm -import kotlinx.coroutines.* import org.jetbrains.dokka.CoreExtensions import org.jetbrains.dokka.base.DokkaBase import org.jetbrains.dokka.base.renderers.DefaultRenderer @@ -204,11 +203,11 @@ open class CommonmarkRenderer( override suspend fun renderPage(page: PageNode) { val path by lazy { locationProvider.resolve(page, skipExtension = true) } when (page) { - is ContentPage -> outputWriter.write(path, buildPage(page) { c, p -> runBlocking { buildPageContent(c, p) } }, ".md") + is ContentPage -> outputWriter.write(path, buildPage(page) { c, p -> buildPageContent(c, p) }, ".md") is RendererSpecificPage -> when (val strategy = page.strategy) { is RenderingStrategy.Copy -> outputWriter.writeResources(strategy.from, path) is RenderingStrategy.Write -> outputWriter.write(path, strategy.text, "") - is RenderingStrategy.Callback -> outputWriter.write(path, strategy.instructions(this@CommonmarkRenderer, page), ".md") + is RenderingStrategy.Callback -> outputWriter.write(path, strategy.instructions(this, page), ".md") RenderingStrategy.DoNothing -> Unit } else -> throw AssertionError( |