Add test for ordered list parsing with multi-line items, update parser to increment list index correctly, and bump version to 2.0.1.

This commit is contained in:
2026-01-31 15:18:32 +01:00
parent e25990ca25
commit 5c0d09e38f
12 changed files with 104 additions and 2 deletions

View File

@@ -46,10 +46,11 @@ fun markdown(text: String): List<MarkdownPart> {
parseBuffer()
continue
} else if (
line.startsWith("${listIndex++}.")
line.startsWith("${listIndex}.")
|| line.startsWith("-.")
|| line.startsWith("#.")
) {
listIndex++
buffer.append("\n")
buffer.append(rawLine)
} else {