aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-08-27 17:59:30 +0200
committerKamil Doległo <kamilok1965@interia.pl>2019-08-27 17:59:30 +0200
commit61a3587abeb35908b09e169bb55e2a9f1890c195 (patch)
treedbd17703b7fa98ba272ce21c932a8c55609354d0 /core/src/main
parentfc93d14549ca4d14f1f45fbe143d87ac6dc2fdd9 (diff)
downloaddokka-61a3587abeb35908b09e169bb55e2a9f1890c195.tar.gz
dokka-61a3587abeb35908b09e169bb55e2a9f1890c195.tar.bz2
dokka-61a3587abeb35908b09e169bb55e2a9f1890c195.zip
Fix for missing colon in links to external sites, https://github.com/Kotlin/dokka/issues/405
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/kotlin/Kotlin/ContentBuilder.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Kotlin/ContentBuilder.kt b/core/src/main/kotlin/Kotlin/ContentBuilder.kt
index c60625a4..573b41b6 100644
--- a/core/src/main/kotlin/Kotlin/ContentBuilder.kt
+++ b/core/src/main/kotlin/Kotlin/ContentBuilder.kt
@@ -168,7 +168,7 @@ fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver: LinkR
}
}
-private fun MarkdownNode.getLabelText() = children.filter { it.type == MarkdownTokenTypes.TEXT || it.type == MarkdownTokenTypes.EMPH }.joinToString("") { it.text }
+private fun MarkdownNode.getLabelText() = children.filter { it.type == MarkdownTokenTypes.TEXT || it.type == MarkdownTokenTypes.EMPH || it.type == MarkdownTokenTypes.COLON }.joinToString("") { it.text }
private fun keepEol(node: ContentNode) = node is ContentParagraph || node is ContentSection || node is ContentBlockCode
private fun processingList(node: ContentNode) = node is ContentOrderedList || node is ContentUnorderedList