aboutsummaryrefslogtreecommitdiff
path: root/plugins/gfm/src
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-17 10:46:26 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-17 11:52:28 +0200
commita2be91ea289ddb1a8634c5fd252243f1b9ab7000 (patch)
tree682463697296d7084d70ceb2816e65badf668fd0 /plugins/gfm/src
parentb439f0f4da19273a1b60df45aa380ecf2511de73 (diff)
downloaddokka-a2be91ea289ddb1a8634c5fd252243f1b9ab7000.tar.gz
dokka-a2be91ea289ddb1a8634c5fd252243f1b9ab7000.tar.bz2
dokka-a2be91ea289ddb1a8634c5fd252243f1b9ab7000.zip
Implement SelfRepresentingSingletonSet and let `ContentSourceSet` conform to it
Diffstat (limited to 'plugins/gfm/src')
-rw-r--r--plugins/gfm/src/main/kotlin/GfmPlugin.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/gfm/src/main/kotlin/GfmPlugin.kt b/plugins/gfm/src/main/kotlin/GfmPlugin.kt
index d93b4e98..8ae4a78a 100644
--- a/plugins/gfm/src/main/kotlin/GfmPlugin.kt
+++ b/plugins/gfm/src/main/kotlin/GfmPlugin.kt
@@ -246,11 +246,11 @@ open class CommonmarkRenderer(
val distinct =
node.groupDivergentInstances(pageContext, { instance, contentPage, sourceSet ->
instance.before?.let { before ->
- buildString { buildContentNode(before, pageContext, setOf(sourceSet)) }
+ buildString { buildContentNode(before, pageContext, sourceSet) }
} ?: ""
}, { instance, contentPage, sourceSet ->
instance.after?.let { after ->
- buildString { buildContentNode(after, pageContext, setOf(sourceSet)) }
+ buildString { buildContentNode(after, pageContext, sourceSet) }
} ?: ""
})
@@ -265,7 +265,7 @@ open class CommonmarkRenderer(
buildContentNode(
it,
pageContext,
- setOf(sourceSets.first())
+ sourceSets.first()
) // It's workaround to render content only once
buildNewLine()
}
@@ -293,7 +293,7 @@ open class CommonmarkRenderer(
buildContentNode(
it,
pageContext,
- setOf(sourceSets.first())
+ sourceSets.first()
) // It's workaround to render content only once
buildNewLine()
}