generated from rnentjes/kotlin-server-web-empty
Extend list parsing to handle multi-line items, improve checkbox list parsing with edge case handling, add unordered/ordered list tests, and update version to 1.0.6.
This commit is contained in:
@@ -182,6 +182,9 @@ fun markdown(text: String): List<MarkdownPart> {
|
||||
}
|
||||
|
||||
if (type == MarkdownType.CHECKBOX_LIST) {
|
||||
if (buffer.isNotBlank()) {
|
||||
addCheckbox(checkboxList, index, buffer)
|
||||
}
|
||||
parts.add(MarkdownPart.CheckboxList(checkboxList))
|
||||
} else {
|
||||
parseBuffer()
|
||||
|
||||
Reference in New Issue
Block a user