aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-04-02 12:54:19 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-04-06 14:23:54 +0200
commit69b8591126833cf1437611972c7407702a1c986a (patch)
treef23f92230747ddb27bcc08a812383678a7ba8e9b /core
parent2b921897aa90216d78e05165d5ce122814ead74c (diff)
downloaddokka-69b8591126833cf1437611972c7407702a1c986a.tar.gz
dokka-69b8591126833cf1437611972c7407702a1c986a.tar.bz2
dokka-69b8591126833cf1437611972c7407702a1c986a.zip
Modified MarkdownParser to fit new See structure. Fixed minor errors in tests.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/parsers/MarkdownParser.kt3
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 782a6504..b567bbe7 100644
--- a/core/src/main/kotlin/parsers/MarkdownParser.kt
+++ b/core/src/main/kotlin/parsers/MarkdownParser.kt
@@ -366,7 +366,8 @@ class MarkdownParser(
it.getSubjectName().orEmpty(),
parseStringToDocNode("[${it.getSubjectName()}]")
.let {
- if(it is DocumentationLink) it.dri
+ val link = it.children[0]
+ if(link is DocumentationLink) link.dri
else null
}
)