aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-03-03 19:35:56 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-03-03 19:35:56 +0100
commit6659337410225b813ea902bfa4b2e5ba3c2c1aaa (patch)
tree3c3679f01bca4497f800a371e42681246843d5d3 /src/Kotlin
parente961960934e2f43cdfc6ad63126c005866a60003 (diff)
downloaddokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.tar.gz
dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.tar.bz2
dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.zip
support ordered lists
Diffstat (limited to 'src/Kotlin')
-rw-r--r--src/Kotlin/ContentBuilder.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Kotlin/ContentBuilder.kt b/src/Kotlin/ContentBuilder.kt
index 44a4f39e..4081dc6e 100644
--- a/src/Kotlin/ContentBuilder.kt
+++ b/src/Kotlin/ContentBuilder.kt
@@ -25,12 +25,12 @@ public fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver
val parent = nodeStack.peek()!!
when (node.type) {
MarkdownElementTypes.UNORDERED_LIST -> {
- nodeStack.push(ContentList())
+ nodeStack.push(ContentUnorderedList())
processChildren()
parent.append(nodeStack.pop())
}
MarkdownElementTypes.ORDERED_LIST -> {
- nodeStack.push(ContentList()) // TODO: add list kind
+ nodeStack.push(ContentOrderedList())
processChildren()
parent.append(nodeStack.pop())
}