diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-02-02 20:46:13 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-02-02 20:46:13 +0300 |
commit | b8115932307864c2e40050ddd564572bb8ec8534 (patch) | |
tree | 74bc9b7c0f1c0faa3a817b8cf28ebbaa13f37a16 /core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt | |
parent | 4641470dbedfe987ce3755bf93431ef3a7990b89 (diff) | |
download | dokka-b8115932307864c2e40050ddd564572bb8ec8534.tar.gz |
Disable outbound links in JavaLayoutHtml
Diffstat (limited to 'core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt')
-rw-r--r-- | core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt b/core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt index a8b754f65..d5f2039a2 100644 --- a/core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt +++ b/core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt @@ -81,7 +81,12 @@ open class JavaLayoutHtmlFormatOutputBuilder( is ContentParagraph -> p { contentNodesToMarkup(content.children) } is ContentNodeLink -> { - a(href = content.node) { contentNodesToMarkup(content.children) } + fun FlowContent.body() = contentNodesToMarkup(content.children) + + when (content.node?.kind) { + NodeKind.TypeParameter -> body() + else -> a(href = content.node, block = FlowContent::body) + } } is ContentExternalLink -> contentExternalLink(content) is ContentSection -> {} |