aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-02-02 20:46:13 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-02-02 20:46:13 +0300
commitb8115932307864c2e40050ddd564572bb8ec8534 (patch)
tree74bc9b7c0f1c0faa3a817b8cf28ebbaa13f37a16 /core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt
parent4641470dbedfe987ce3755bf93431ef3a7990b89 (diff)
downloaddokka-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.kt7
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 -> {}