diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2019-10-29 11:28:42 +0100 |
---|---|---|
committer | Błażej Kardyś <bkardys@virtuslab.com> | 2019-10-29 11:28:42 +0100 |
commit | eec585065fa1865bd8cee188b94634f1c9a90c95 (patch) | |
tree | 5a9217a98008fb6889ff1b449bbe4185d0fd1dca /core/src/main/kotlin/Model/Content.kt | |
parent | 8de3af68d4415418cfe2ff548f9653d33210b44d (diff) | |
download | dokka-eec585065fa1865bd8cee188b94634f1c9a90c95.tar.gz dokka-eec585065fa1865bd8cee188b94634f1c9a90c95.tar.bz2 dokka-eec585065fa1865bd8cee188b94634f1c9a90c95.zip |
New dokka model
Diffstat (limited to 'core/src/main/kotlin/Model/Content.kt')
-rw-r--r-- | core/src/main/kotlin/Model/Content.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Model/Content.kt b/core/src/main/kotlin/Model/Content.kt index 5530e1b4..3881ee20 100644 --- a/core/src/main/kotlin/Model/Content.kt +++ b/core/src/main/kotlin/Model/Content.kt @@ -209,7 +209,7 @@ fun ContentBlock.code(body: ContentBlock.() -> Unit) { } fun ContentBlock.link(to: DocumentationNode, body: ContentBlock.() -> Unit) { - val block = if (to.kind == NodeKind.ExternalLink) + val block = if (to is DocumentationNodes.ExternalLink) ContentExternalLink(to.name) else ContentNodeDirectLink(to) |