Skip to content

Commit 468768a

Browse files
authored
Merge pull request #338 from keta1/fix/335
Change EOL handling from `\n` to a single space
2 parents 6cff36d + 014f2ce commit 468768a

File tree

1 file changed

+1
-1
lines changed
  • multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/annotator

1 file changed

+1
-1
lines changed

multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/annotator/AnnotatedStringKtx.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fun AnnotatedString.Builder.buildMarkdownAnnotatedString(
273273
}
274274

275275
MarkdownTokenTypes.EMPH -> if (parentType != MarkdownElementTypes.EMPH && parentType != MarkdownElementTypes.STRONG) append('*')
276-
MarkdownTokenTypes.EOL -> append('\n')
276+
MarkdownTokenTypes.EOL -> append(' ')
277277
MarkdownTokenTypes.WHITE_SPACE -> if (length > 0) append(' ')
278278
MarkdownTokenTypes.BLOCK_QUOTE -> {
279279
skipIfNext = MarkdownTokenTypes.WHITE_SPACE

0 commit comments

Comments
 (0)