aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Formats
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-10-29 17:12:47 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-10-29 17:12:47 +0300
commit7ef0cf32835d6d652e408a2115d58c37749320c5 (patch)
tree605ae87a4eff6e85092ec29fff87fdda94b117b9 /core/src/main/kotlin/Formats
parentf30807f4e78939fb59f8e46c39b3e538070aacfd (diff)
downloaddokka-7ef0cf32835d6d652e408a2115d58c37749320c5.tar.gz
dokka-7ef0cf32835d6d652e408a2115d58c37749320c5.tar.bz2
dokka-7ef0cf32835d6d652e408a2115d58c37749320c5.zip
Cleanup support for NodeRenderContent
Diffstat (limited to 'core/src/main/kotlin/Formats')
-rw-r--r--core/src/main/kotlin/Formats/StructuredFormatService.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/kotlin/Formats/StructuredFormatService.kt b/core/src/main/kotlin/Formats/StructuredFormatService.kt
index ebc9cde6..410de281 100644
--- a/core/src/main/kotlin/Formats/StructuredFormatService.kt
+++ b/core/src/main/kotlin/Formats/StructuredFormatService.kt
@@ -152,6 +152,10 @@ abstract class StructuredOutputBuilder(val to: StringBuilder,
}
}
+ is NodeRenderContent -> {
+ val node = content.node
+ appendContent(languageService.render(node, content.mode))
+ }
is ContentNodeLink -> {
val node = content.node
val linkTo = if (node != null) locationHref(location, node) else "#"