diff options
author | Ingo Kegel <ingo.kegel@ej-technologies.com> | 2016-01-04 13:36:54 +0100 |
---|---|---|
committer | Ingo Kegel <ingo.kegel@ej-technologies.com> | 2016-01-04 13:36:54 +0100 |
commit | 89a36e0eed4a31856cca0cedb9b67ce79cee5100 (patch) | |
tree | fd0d71cc5924564036775b320ee6e25afc899605 /core/src/main | |
parent | e0c6c1a58ff09e657d41f2bca6943486cb877f25 (diff) | |
download | dokka-89a36e0eed4a31856cca0cedb9b67ce79cee5100.tar.gz dokka-89a36e0eed4a31856cca0cedb9b67ce79cee5100.tar.bz2 dokka-89a36e0eed4a31856cca0cedb9b67ce79cee5100.zip |
Embedded underscores in words like word_with_underscores or single embedded stars like embedded*star were removed in the output.
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/kotlin/Kotlin/ContentBuilder.kt | 6 |
1 files changed, 6 insertions, 0 deletions
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, |