diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-04 20:17:03 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-04 20:17:03 +0100 |
commit | f50966b8da454a9dacc2b35267b2ffa11b227638 (patch) | |
tree | aa12cc4090e2aaa937cc153b20aab2bb1f04d84b /src/Kotlin/DescriptorDocumentationParser.kt | |
parent | 972118bcffbdf13ebd3aefd495618c4670bdc7b3 (diff) | |
download | dokka-f50966b8da454a9dacc2b35267b2ffa11b227638.tar.gz dokka-f50966b8da454a9dacc2b35267b2ffa11b227638.tar.bz2 dokka-f50966b8da454a9dacc2b35267b2ffa11b227638.zip |
remove extra <p> tags from @param
Diffstat (limited to 'src/Kotlin/DescriptorDocumentationParser.kt')
-rw-r--r-- | src/Kotlin/DescriptorDocumentationParser.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Kotlin/DescriptorDocumentationParser.kt b/src/Kotlin/DescriptorDocumentationParser.kt index 839c3710..76bad31e 100644 --- a/src/Kotlin/DescriptorDocumentationParser.kt +++ b/src/Kotlin/DescriptorDocumentationParser.kt @@ -30,9 +30,10 @@ class DescriptorDocumentationParser val resolutionFacade: DokkaResolutionFacade, val refGraph: NodeReferenceGraph) { - fun parseDocumentation(descriptor: DeclarationDescriptor): Content = parseDocumentationAndDetails(descriptor).first + fun parseDocumentation(descriptor: DeclarationDescriptor, inline: Boolean = false): Content = + parseDocumentationAndDetails(descriptor, inline).first - fun parseDocumentationAndDetails(descriptor: DeclarationDescriptor): Pair<Content, (DocumentationNode) -> Unit> { + fun parseDocumentationAndDetails(descriptor: DeclarationDescriptor, inline: Boolean = false): Pair<Content, (DocumentationNode) -> Unit> { if (descriptor is JavaClassDescriptor || descriptor is JavaCallableMemberDescriptor) { return parseJavadoc(descriptor) } @@ -52,8 +53,7 @@ class DescriptorDocumentationParser kdocText += "\n" } val tree = parseMarkdown(kdocText) - //println(tree.toTestString()) - val content = buildContent(tree, { href -> linkResolver.resolveContentLink(descriptor, href) }) + val content = buildContent(tree, { href -> linkResolver.resolveContentLink(descriptor, href) }, inline) if (kdoc is KDocSection) { val tags = kdoc.getTags() tags.forEach { |