From 69b8591126833cf1437611972c7407702a1c986a Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Thu, 2 Apr 2020 12:54:19 +0200 Subject: Modified MarkdownParser to fit new See structure. Fixed minor errors in tests. --- core/src/main/kotlin/parsers/MarkdownParser.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') 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 } ) -- cgit