diff options
author | Szymon Świstun <sswistun@virtuslab.com> | 2019-12-16 17:59:48 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-01-08 10:45:08 +0100 |
commit | be47aa9b85be2100204dcb740f8eea41489e67a9 (patch) | |
tree | a8170c350f186de0e96a52dca6f089340334e45d /core/src/main/kotlin/parsers | |
parent | f57e3081052d6d148b4f8af70f838ba13ae96b29 (diff) | |
download | dokka-be47aa9b85be2100204dcb740f8eea41489e67a9.tar.gz dokka-be47aa9b85be2100204dcb740f8eea41489e67a9.tar.bz2 dokka-be47aa9b85be2100204dcb740f8eea41489e67a9.zip |
response to comments
Diffstat (limited to 'core/src/main/kotlin/parsers')
-rw-r--r-- | core/src/main/kotlin/parsers/MarkdownParser.kt | 3 |
1 files changed, 2 insertions, 1 deletions
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) } } |