Skip to content

Commit

Permalink
Fix soft line breaks treated as hard line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Jul 1, 2024
1 parent 47a9217 commit 5a87d3c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ public open class DefaultInlineMarkdownRenderer(rendererExtensions: List<Markdow
withStyles(styling.inlineCode.withEnabled(enabled), child) { append(it.nativeNode.literal) }
}

is InlineMarkdown.HardLineBreak,
is InlineMarkdown.SoftLineBreak,
-> appendLine()
is InlineMarkdown.HardLineBreak -> appendLine()
is InlineMarkdown.SoftLineBreak -> append(" ")

is InlineMarkdown.HtmlInline -> {
if (styling.renderInlineHtml) {
Expand Down

0 comments on commit 5a87d3c

Please sign in to comment.