generated from rnentjes/kotlin-server-web-empty
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user