From 8de3af68d4415418cfe2ff548f9653d33210b44d Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Thu, 3 Oct 2019 13:19:45 +0200 Subject: Partial fix for email links in markdown #179 --- core/src/main/kotlin/Kotlin/ContentBuilder.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/src') diff --git a/core/src/main/kotlin/Kotlin/ContentBuilder.kt b/core/src/main/kotlin/Kotlin/ContentBuilder.kt index 573b41b6..0e60ff26 100644 --- a/core/src/main/kotlin/Kotlin/ContentBuilder.kt +++ b/core/src/main/kotlin/Kotlin/ContentBuilder.kt @@ -161,6 +161,10 @@ fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver: LinkR MarkdownElementTypes.LINK_DEFINITION -> { } + MarkdownTokenTypes.EMAIL_AUTOLINK -> { + parent.append(ContentText(node.text)) // TODO: create new ContentType for email to create mailto: links + } + else -> { processChildren() } -- cgit