Skip to content

Commit

Permalink
Add repro test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wavesonics committed Dec 7, 2024
1 parent 6b7a3b1 commit 416a52e
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,23 @@ class RichTextStateMarkdownParserEncodeTest {
}
}

@Test
fun testEncodeWithLeadingSpaces() {
val markdown = """First line
indented line"""

val state = RichTextStateMarkdownParser.encode(markdown)

val parsedString = state.annotatedString.toString()

assertEquals(
expected = markdown,
actual = parsedString
)
}


@Test
fun testEncodeWithTwoHtmlLineBreaks() {
val markdown = """
Expand Down

0 comments on commit 416a52e

Please sign in to comment.