aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin/DocumentationBuilder.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Kotlin/DocumentationBuilder.kt')
-rw-r--r--src/Kotlin/DocumentationBuilder.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt
index d166fa82..f1be8a50 100644
--- a/src/Kotlin/DocumentationBuilder.kt
+++ b/src/Kotlin/DocumentationBuilder.kt
@@ -558,7 +558,7 @@ class DocumentationBuilder(val session: ResolveSession, val options: Documentati
return descriptor
}
- fun resolveContentLinks(node: DocumentationNode, content: ContentNode) {
+ fun resolveContentLinks(node: DocumentationNode, content: ContentBlock) {
val resolvedContentChildren = content.children.map { resolveContentLink(node, it) }
content.children.clear()
content.children.addAll(resolvedContentChildren)
@@ -577,7 +577,9 @@ class DocumentationBuilder(val session: ResolveSession, val options: Documentati
return contentLink
}
}
- resolveContentLinks(node, content)
+ if (content is ContentBlock) {
+ resolveContentLinks(node, content)
+ }
return content
}
}