generated from rnentjes/kotlin-server-web-empty
Extend parser to support #. as an ordered list identifier, add alternative list type tests, and update version to 1.0.9.
This commit is contained in:
@@ -68,6 +68,24 @@ class ParseTest {
|
||||
printMarkdownParts(md)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testUnorderedListAlternative() {
|
||||
val input = """
|
||||
Dit is een text
|
||||
|
||||
* First
|
||||
More text
|
||||
* Second
|
||||
More text
|
||||
|
||||
Another paragraph
|
||||
""".trimIndent()
|
||||
|
||||
val md = markdown(input)
|
||||
|
||||
printMarkdownParts(md)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testOrderedList() {
|
||||
val input = """
|
||||
@@ -86,6 +104,24 @@ class ParseTest {
|
||||
printMarkdownParts(md)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testOrderedListAlternative() {
|
||||
val input = """
|
||||
Dit is een text
|
||||
|
||||
#.First
|
||||
More text
|
||||
#.Second
|
||||
More text
|
||||
|
||||
Another paragraph
|
||||
""".trimIndent()
|
||||
|
||||
val md = markdown(input)
|
||||
|
||||
printMarkdownParts(md)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testCheckboxList() {
|
||||
val input = """
|
||||
|
||||
Reference in New Issue
Block a user