From be47aa9b85be2100204dcb740f8eea41489e67a9 Mon Sep 17 00:00:00 2001 From: Szymon Świstun Date: Mon, 16 Dec 2019 17:59:48 +0100 Subject: response to comments --- core/src/main/kotlin/parsers/MarkdownParser.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src/main/kotlin/parsers') diff --git a/core/src/main/kotlin/parsers/MarkdownParser.kt b/core/src/main/kotlin/parsers/MarkdownParser.kt index 735f90d5..5e4b82e8 100644 --- a/core/src/main/kotlin/parsers/MarkdownParser.kt +++ b/core/src/main/kotlin/parsers/MarkdownParser.kt @@ -10,6 +10,7 @@ import org.intellij.markdown.flavours.commonmark.CommonMarkFlavourDescriptor import org.jetbrains.dokka.analysis.DokkaResolutionFacade import org.jetbrains.dokka.links.DRI import org.jetbrains.dokka.parsers.factories.DocNodesFromIElementFactory +import org.jetbrains.dokka.utilities.DokkaConsoleLogger import org.jetbrains.kotlin.descriptors.DeclarationDescriptor import org.jetbrains.kotlin.idea.kdoc.resolveKDocLink import org.jetbrains.kotlin.kdoc.parser.KDocKnownTag @@ -91,7 +92,7 @@ class MarkdownParser ( declarationDescriptor, null, link.split('.') - ).also { if (it.size > 1) println("Markdown link resolved more than one element: $it") }.firstOrNull()//.single() + ).also { if (it.size > 1) DokkaConsoleLogger.warn("Markdown link resolved more than one element: $it") }.firstOrNull()//.single() ?.let { DRI.from(it) } } -- cgit