From 89a36e0eed4a31856cca0cedb9b67ce79cee5100 Mon Sep 17 00:00:00 2001 From: Ingo Kegel Date: Mon, 4 Jan 2016 13:36:54 +0100 Subject: Embedded underscores in words like word_with_underscores or single embedded stars like embedded*star were removed in the output. --- core/src/main/kotlin/Kotlin/ContentBuilder.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/src/main') diff --git a/core/src/main/kotlin/Kotlin/ContentBuilder.kt b/core/src/main/kotlin/Kotlin/ContentBuilder.kt index c4bb18de..1a6ffb98 100644 --- a/core/src/main/kotlin/Kotlin/ContentBuilder.kt +++ b/core/src/main/kotlin/Kotlin/ContentBuilder.kt @@ -103,6 +103,12 @@ public fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver parent.append(createEntityOrText(node.text)) } + MarkdownTokenTypes.EMPH -> { + if (node.parent?.type != MarkdownElementTypes.EMPH) { + parent.append(ContentText(node.text)) + } + } + MarkdownTokenTypes.COLON, MarkdownTokenTypes.DOUBLE_QUOTE, MarkdownTokenTypes.LT, -- cgit